diff --git a/wp-includes/cache.php b/wp-includes/cache.php index 63e3f2520a..83eae4c814 100644 --- a/wp-includes/cache.php +++ b/wp-includes/cache.php @@ -362,8 +362,7 @@ class WP_Object_Cache { else $this->cache_dir = ABSPATH.'wp-content/cache/'; - if (is_dir($this->cache_dir)) { - if (is_writable($this->cache_dir)) + if (is_writable($this->cache_dir) && is_dir($this->cache_dir)) { $this->cache_enabled = true; } else if (is_writable(ABSPATH.'wp-content')) {