mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
flushMethodCache not working if called before cacheMethod
When calling flushMethodCache it correctly empties self::$methodCache but if cacheMethod is called afterwards self::$methodCache gets populated with data from the Cache.
This commit is contained in:
parent
8f2bd51834
commit
f416a321c7
1 changed files with 1 additions and 1 deletions
|
@ -771,7 +771,7 @@ class DboSource extends DataSource {
|
|||
if ($this->cacheMethods === false) {
|
||||
return $value;
|
||||
}
|
||||
if (empty(self::$methodCache)) {
|
||||
if (!$this->_methodCacheChange && empty(self::$methodCache)) {
|
||||
self::$methodCache = Cache::read('method_cache', '_cake_core_');
|
||||
}
|
||||
if ($value === null) {
|
||||
|
|
Loading…
Reference in a new issue