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:
Ryan Boren 2005-11-16 19:01:58 +00:00
parent 8844ae0ca9
commit faa7e8cbdd
1 changed files with 3 additions and 0 deletions

View File

@ -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 ();