mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
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:
@@ -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)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user