fix: village resources display outdated information on page load

This commit is contained in:
Martin Ambrus
2017-11-17 12:36:27 +01:00
parent d138bb4ef7
commit 51f354542d
2 changed files with 11 additions and 0 deletions
+8
View File
@@ -436,6 +436,14 @@ class MYSQLi_DB implements IDbConnection {
}
}
/**
* Clears cached village data, so after automation is run, we can re-load new data (like resource levels etc)
* to be displayed in the front-end.
*/
public static function clearVillageCache() {
self::$villageFieldsCache = [];
}
function escape($value) {
$value = stripslashes($value);
return mysqli_real_escape_string($this->dblink, $value);