From ec63435ed86433b1490dffa5886c9daeda57217c Mon Sep 17 00:00:00 2001 From: PHAN Xuan Quang <20521008@ms.uit.edu.vn> Date: Thu, 12 Sep 2024 00:23:29 +0700 Subject: [PATCH] fix cache --- EngAce.Api/Controllers/QuizController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EngAce.Api/Controllers/QuizController.cs b/EngAce.Api/Controllers/QuizController.cs index 00d948d..d9815ec 100644 --- a/EngAce.Api/Controllers/QuizController.cs +++ b/EngAce.Api/Controllers/QuizController.cs @@ -130,7 +130,7 @@ public async Task>> Suggest3Topics(EnglishLevel englis /// /// Returns a dictionary of English levels and their descriptions. [HttpGet("GetEnglishLevels")] - [ResponseCache(Duration = QuizScope.OneMonthAsCachingAge, Location = ResponseCacheLocation.Any, NoStore = false)] + //[ResponseCache(Duration = QuizScope.OneMonthAsCachingAge, Location = ResponseCacheLocation.Any, NoStore = false)] public ActionResult> GetEnglishLevels() { var levels = Enum.GetValues(typeof(EnglishLevel)).Cast().ToList(); @@ -151,7 +151,7 @@ public ActionResult> GetEnglishLevels() /// /// Returns a dictionary of quiz types and their descriptions. [HttpGet("GetQuizTypes")] - [ResponseCache(Duration = QuizScope.OneMonthAsCachingAge, Location = ResponseCacheLocation.Any, NoStore = false)] + //[ResponseCache(Duration = QuizScope.OneMonthAsCachingAge, Location = ResponseCacheLocation.Any, NoStore = false)] public ActionResult> GetQuizTypes() { var types = Enum.GetValues(typeof(QuizzType)).Cast().ToList();