refactor: 1st round of database values caching

This commit is contained in:
Martin Ambrus
2017-11-15 16:01:00 +01:00
parent 06161dd5f9
commit dab768f662
11 changed files with 1675 additions and 1023 deletions
+2 -1
View File
@@ -37,10 +37,11 @@ class Village {
}
//add new line code
//check exist village if from village destroy to avoid error msg.
if (!$database-> checkVilExist($this->wid)) {
if ( !$database->checkVilExist($this->wid) ) {
$this->wid=$database->getVillageID($session->uid);
$_SESSION['wid']=$this->wid;
}
$this->LoadTown();
$this->calculateProduction();
$this->processProduction();