fix: remove some overzealous caching

This commit is contained in:
Michael Green
2023-07-10 22:46:11 +10:00
parent 7e216a9192
commit b4c34d0604
4 changed files with 22 additions and 6 deletions

View File

@@ -16,7 +16,7 @@ namespace gaseous_server.Controllers
{
[HttpGet]
[ProducesResponseType(StatusCodes.Status200OK)]
[ResponseCache(CacheProfileName = "5Minute")]
//[ResponseCache(CacheProfileName = "5Minute")]
public Dictionary<string, object> Filter()
{
Database db = new gaseous_tools.Database(Database.databaseType.MySql, Config.DatabaseConfiguration.ConnectionString);

View File

@@ -650,7 +650,7 @@ namespace gaseous_server.Controllers
[Route("{GameId}/roms")]
[ProducesResponseType(typeof(List<Classes.Roms.GameRomItem>), 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

View File

@@ -1,11 +1,11 @@
<div id="properties_toc">
<div id="properties_toc_general" name="properties_toc_item" onclick="SelectTab('general');">General</div>
<div id="properties_toc_match" name="properties_toc_item" onclick="SelectTab('match');">Title Match</div>
<div id="properties_toc_manage" name="properties_toc_item" onclick="SelectTab('manage');">Manage</div>
<!--<div id="properties_toc_manage" name="properties_toc_item" onclick="SelectTab('manage');">Manage</div>-->
</div>
<div id="properties_bodypanel">
<div id="properties_bodypanel_general" name="properties_tab" style="display: none;">
<table cellspacing="0">
<table cellspacing="0" style="width: 100%;">
<tr>
<th>Platform</th>
<td id="rominfo_platform"></td>
@@ -42,6 +42,9 @@
<th>Signature Source Flags</th>
<td id="rominfo_flags"></td>
</tr>
<tr>
<td colspan="2" style="text-align: right;"><button class="redbutton">Delete</button></td>
</tr>
</table>
</div>
@@ -67,7 +70,7 @@
</div>
<div id="properties_bodypanel_manage" name="properties_tab" style="display: none;">
</div>
</div>

View File

@@ -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;
}