This commit is contained in:
kremsy
2014-05-10 10:12:48 +02:00
parent 74320397ea
commit bc578d9a4e
7 changed files with 24 additions and 12 deletions

View File

@ -40,7 +40,7 @@ class Player {
public $uploadRate = -1;
public $skins = null;
public $daysSinceZoneInscription = -1;
public $cache = array();
private $cache = array();
//Flags details
public $forcedSpectatorState = 0;
@ -271,6 +271,17 @@ class Player {
$this->cache[$className . $cacheName] = $data;
}
/**
* Destroys a Cache
*
* @param $object
* @param $cacheName
*/
public function destroyCache($object, $cacheName) {
$className = $this->getClassName($object);
unset($this->cache[$className . $cacheName]);
}
/**
* Clear the Player's Temporary Data
*/