From 6c4e7e48d2351e13df2649f8ef7b8fab4a621153 Mon Sep 17 00:00:00 2001 From: ryan Date: Sat, 4 Feb 2006 03:21:09 +0000 Subject: [PATCH] Disable cache by default. git-svn-id: http://svn.automattic.com/wordpress/trunk@3504 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 4dd396d7e..63a4ce758 100644 --- a/wp-includes/cache.php +++ b/wp-includes/cache.php @@ -400,6 +400,9 @@ class WP_Object_Cache { if (defined('DISABLE_CACHE')) return; + if ( ! defined('ENABLE_CACHE') ) + return; + // Disable the persistent cache if safe_mode is on. if ( ini_get('safe_mode') && ! defined('ENABLE_CACHE') ) return;