Don't flush if cache is disabled.
git-svn-id: https://develop.svn.wordpress.org/trunk@3110 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8844ae0ca9
commit
faa7e8cbdd
|
@ -91,6 +91,9 @@ class WP_Object_Cache {
|
|||
}
|
||||
|
||||
function flush() {
|
||||
if ( !$this->cache_enabled )
|
||||
return;
|
||||
|
||||
$this->rm($this->cache_dir.'*');
|
||||
$this->cache = array ();
|
||||
$this->dirty_objects = array ();
|
||||
|
|
Loading…
Reference in New Issue