Using the static property instead

This commit is contained in:
Jose Lorenzo Rodriguez 2011-07-17 22:41:12 -04:30
parent a786f4b1c6
commit 03dac31930

View file

@ -3140,7 +3140,7 @@ class DboSource extends DataSource {
*/
public function __destruct() {
if ($this->_methodCacheChange) {
Cache::write('method_cache', $this->methodCache, '_cake_core_');
Cache::write('method_cache', self::$methodCache, '_cake_core_');
}
}