Don't flush if cache is disabled.
git-svn-id: http://svn.automattic.com/wordpress/trunk@3110 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d0bb17a2f3
commit
64567c90f4
|
@ -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