From 64567c90f460abb7809429f1da34e553137a2a61 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 16 Nov 2005 19:01:58 +0000 Subject: [PATCH] Don't flush if cache is disabled. git-svn-id: http://svn.automattic.com/wordpress/trunk@3110 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 ();