From b4c34d060483180a8e10c6d5aab541a355e5c040 Mon Sep 17 00:00:00 2001 From: Michael Green <84688932+michael-j-green@users.noreply.github.com> Date: Mon, 10 Jul 2023 22:46:11 +1000 Subject: [PATCH] fix: remove some overzealous caching --- gaseous-server/Controllers/FilterController.cs | 2 +- gaseous-server/Controllers/GamesController.cs | 4 ++-- gaseous-server/wwwroot/pages/dialogs/rominfo.html | 9 ++++++--- gaseous-server/wwwroot/styles/style.css | 13 +++++++++++++ 4 files changed, 22 insertions(+), 6 deletions(-) diff --git a/gaseous-server/Controllers/FilterController.cs b/gaseous-server/Controllers/FilterController.cs index 1a5b31a..e8af867 100644 --- a/gaseous-server/Controllers/FilterController.cs +++ b/gaseous-server/Controllers/FilterController.cs @@ -16,7 +16,7 @@ namespace gaseous_server.Controllers { [HttpGet] [ProducesResponseType(StatusCodes.Status200OK)] - [ResponseCache(CacheProfileName = "5Minute")] + //[ResponseCache(CacheProfileName = "5Minute")] public Dictionary Filter() { Database db = new gaseous_tools.Database(Database.databaseType.MySql, Config.DatabaseConfiguration.ConnectionString); diff --git a/gaseous-server/Controllers/GamesController.cs b/gaseous-server/Controllers/GamesController.cs index 4946243..0dce880 100644 --- a/gaseous-server/Controllers/GamesController.cs +++ b/gaseous-server/Controllers/GamesController.cs @@ -650,7 +650,7 @@ namespace gaseous_server.Controllers [Route("{GameId}/roms")] [ProducesResponseType(typeof(List), StatusCodes.Status200OK)] [ProducesResponseType(StatusCodes.Status404NotFound)] - [ResponseCache(CacheProfileName = "5Minute")] + //[ResponseCache(CacheProfileName = "5Minute")] public ActionResult GameRom(long GameId) { try @@ -671,7 +671,7 @@ namespace gaseous_server.Controllers [Route("{GameId}/roms/{RomId}")] [ProducesResponseType(typeof(Classes.Roms.GameRomItem), StatusCodes.Status200OK)] [ProducesResponseType(StatusCodes.Status404NotFound)] - [ResponseCache(CacheProfileName = "5Minute")] + //[ResponseCache(CacheProfileName = "5Minute")] public ActionResult GameRom(long GameId, long RomId) { try diff --git a/gaseous-server/wwwroot/pages/dialogs/rominfo.html b/gaseous-server/wwwroot/pages/dialogs/rominfo.html index 108c54d..827cdc5 100644 --- a/gaseous-server/wwwroot/pages/dialogs/rominfo.html +++ b/gaseous-server/wwwroot/pages/dialogs/rominfo.html @@ -1,11 +1,11 @@ 
General
Title Match
-
Manage
+
@@ -67,7 +70,7 @@
diff --git a/gaseous-server/wwwroot/styles/style.css b/gaseous-server/wwwroot/styles/style.css index 44a25ac..9915c52 100644 --- a/gaseous-server/wwwroot/styles/style.css +++ b/gaseous-server/wwwroot/styles/style.css @@ -557,4 +557,17 @@ button:hover { button:disabled { background-color: #555; cursor: not-allowed; +} + +.redbutton { + background-color: darkred; + border-color: darkred; +} + +.redbutton:hover { + background-color: red; +} + +.redbutton:disabled { + background-color: #555; } \ No newline at end of file