Fix researching cache population (#358)

This commit is contained in:
Fabian
2026-07-31 06:11:35 +01:00
committed by GitHub
parent 6726f9c6e4
commit d8dfed5e33
2 changed files with 72 additions and 2 deletions
+2 -2
View File
@@ -354,8 +354,8 @@ trait DatabaseTroopQueries {
$q = "SELECT * FROM " . TB_PREFIX . "research where vref = $vid ORDER BY timestamp ASC";
$result = mysqli_query($this->dblink,$q);
$researchingCache[$vid] = $this->mysqli_fetch_all($result);
return $researchingCache[$vid];
self::$researchingCache[$vid] = $this->mysqli_fetch_all($result);
return self::$researchingCache[$vid];
}
function checkIfResearched($vref, $unit, $use_cache = true) {