From 8a9ce54916ce6b1bfe0ae8b57e65273c2ef687fb Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sat, 4 Feb 2006 03:21:09 +0000 Subject: [PATCH] Disable cache by default. git-svn-id: https://develop.svn.wordpress.org/trunk@3504 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 4dd396d7e9..63a4ce7589 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;