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:
ryan 2005-11-16 19:01:58 +00:00
parent d0bb17a2f3
commit 64567c90f4
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 ();