Skip to content

Commit

Permalink
fix cache
Browse files Browse the repository at this point in the history
  • Loading branch information
PHAN Xuan Quang committed Sep 11, 2024
1 parent e5279ba commit ec63435
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EngAce.Api/Controllers/QuizController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public async Task<ActionResult<List<string>>> Suggest3Topics(EnglishLevel englis
/// </returns>
/// <response code="200">Returns a dictionary of English levels and their descriptions.</response>
[HttpGet("GetEnglishLevels")]
[ResponseCache(Duration = QuizScope.OneMonthAsCachingAge, Location = ResponseCacheLocation.Any, NoStore = false)]
//[ResponseCache(Duration = QuizScope.OneMonthAsCachingAge, Location = ResponseCacheLocation.Any, NoStore = false)]
public ActionResult<Dictionary<int, string>> GetEnglishLevels()
{
var levels = Enum.GetValues(typeof(EnglishLevel)).Cast<EnglishLevel>().ToList();
Expand All @@ -151,7 +151,7 @@ public ActionResult<Dictionary<int, string>> GetEnglishLevels()
/// </returns>
/// <response code="200">Returns a dictionary of quiz types and their descriptions.</response>
[HttpGet("GetQuizTypes")]
[ResponseCache(Duration = QuizScope.OneMonthAsCachingAge, Location = ResponseCacheLocation.Any, NoStore = false)]
//[ResponseCache(Duration = QuizScope.OneMonthAsCachingAge, Location = ResponseCacheLocation.Any, NoStore = false)]
public ActionResult<Dictionary<int, string>> GetQuizTypes()
{
var types = Enum.GetValues(typeof(QuizzType)).Cast<QuizzType>().ToList();
Expand Down

0 comments on commit ec63435

Please sign in to comment.