mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Cache/Fixup
* correct miscData offset for tooltips introduced in 3edac3c77a
* fix generating cache key for item upgrade searches
This commit is contained in:
@@ -323,11 +323,17 @@ trait TrSearch
|
||||
|
||||
public function getCacheKeyComponents() : array
|
||||
{
|
||||
$misc = $this->query . // can be empty for upgrade search
|
||||
serialize($this->_get['wt'] ?? null) . // extra &_GET not expected for normal and opensearch
|
||||
serialize($this->_get['wtv'] ?? null) .
|
||||
serialize($this->_get['type'] ?? null) .
|
||||
serialize($this->_get['slots'] ?? null);
|
||||
|
||||
return array(
|
||||
-1, // DBType
|
||||
$this->searchMask, // DBTypeId/category
|
||||
User::$groups, // staff mask
|
||||
md5($this->query) // misc (here search query)
|
||||
md5($misc) // misc
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ trait TrTooltip
|
||||
);
|
||||
|
||||
if ($this->enhancedTT)
|
||||
$key[4] = md5(serialize($this->enhancedTT));
|
||||
$key[3] = md5(serialize($this->enhancedTT));
|
||||
|
||||
return $key;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user