From faa7e8cbdd7b104c6ec7623ee40c5ec9e4b7150a Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 16 Nov 2005 19:01:58 +0000 Subject: [PATCH] Don't flush if cache is disabled. git-svn-id: https://develop.svn.wordpress.org/trunk@3110 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/cache.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-includes/cache.php b/wp-includes/cache.php index 1ff448ab2e..babec4ffd6 100644 --- a/wp-includes/cache.php +++ b/wp-includes/cache.php @@ -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 ();