Fixed getNested() using cache desynchroinized from set()

This commit is contained in:
PEMapModder 2015-09-26 12:21:43 +08:00
parent cbef0e25a1
commit a3ad5783b7

View File

@ -367,6 +367,11 @@ class Config{
*/
public function set($k, $v = true){
$this->config[$k] = $v;
foreach($this->nestedCache as $nestedKey => $nvalue){
if(substr($nestedKey, 0, strlen($k) + 1) === ($k . ".")){
unset($this->nestedCache($nestedKey));
}
}
}
/**