Endpoints/Cache

* fix cache id collision when category == dbTypeId for a given dbType
 * increment version number to invalidate existing caches
 * maps endpoint doesn't need caching. It is entirely static content.
This commit is contained in:
Sarjuuk
2025-10-08 18:20:26 +02:00
parent 95ee9d2c25
commit 3edac3c77a
53 changed files with 61 additions and 68 deletions

View File

@@ -21,8 +21,7 @@ trait TrDetailPage
{
return array(
$this->type, // DBType
$this->typeId, // DBTypeId
-1, // category
$this->typeId, // DBTypeId/category
User::$groups, // staff mask
'' // misc (here unused)
);
@@ -54,8 +53,7 @@ trait TrListPage
return array(
$this->type, // DBType
-1, // DBTypeId
$catg ?? -1, // category
$catg ?? -1, // DBTypeId/category
User::$groups, // staff mask
$misc ?? '' // misc (here filter)
);