Cache/Fixup

* correct miscData offset for tooltips introduced in 3edac3c77a
 * fix generating cache key for item upgrade searches
This commit is contained in:
Sarjuuk
2025-10-11 22:33:50 +02:00
parent 9b0aa5c885
commit 494061de82
2 changed files with 8 additions and 2 deletions

View File

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

View File

@@ -20,7 +20,7 @@ trait TrTooltip
);
if ($this->enhancedTT)
$key[4] = md5(serialize($this->enhancedTT));
$key[3] = md5(serialize($this->enhancedTT));
return $key;
}