mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-09-01 08:07:14 +00:00
Restore commit
Restore commit
This commit is contained in:
@@ -152,10 +152,7 @@ class Automation {
|
|||||||
$q = "UPDATE ".TB_PREFIX."vdata set pop = $popTot where wref = $vid";
|
$q = "UPDATE ".TB_PREFIX."vdata set pop = $popTot where wref = $vid";
|
||||||
mysqli_query($database->dblink, $q);
|
mysqli_query($database->dblink, $q);
|
||||||
$owner = $database->getVillageField($vid, "owner");
|
$owner = $database->getVillageField($vid, "owner");
|
||||||
// Invalidăm cache-ul sumei de populație al jucătorului
|
|
||||||
if ($owner > 0) {
|
|
||||||
Database::clearUserSumFieldCache($owner, 'pop');
|
|
||||||
}
|
|
||||||
// Milestone: first player ever to reach 1000 total population,
|
// Milestone: first player ever to reach 1000 total population,
|
||||||
// summed across all their villages. recountPop() is the single
|
// summed across all their villages. recountPop() is the single
|
||||||
// funnel every population-changing event (building, demolishing,
|
// funnel every population-changing event (building, demolishing,
|
||||||
|
|||||||
@@ -4091,10 +4091,6 @@ class MYSQLi_DB implements IDbConnection {
|
|||||||
|
|
||||||
return ($array_passed ? $result : self::$userSumFieldCache[$uid[0].$field]);
|
return ($array_passed ? $result : self::$userSumFieldCache[$uid[0].$field]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function clearUserSumFieldCache($uid, $field){
|
|
||||||
unset(self::$userSumFieldCache[(int)$uid.$field]);
|
|
||||||
}
|
|
||||||
|
|
||||||
function updateVillage($vid) {
|
function updateVillage($vid) {
|
||||||
list($vid) = $this->escape_input((int) $vid);
|
list($vid) = $this->escape_input((int) $vid);
|
||||||
|
|||||||
Reference in New Issue
Block a user