From e4f71b7c8f99f1f74c576c0a29795ee0443cd187 Mon Sep 17 00:00:00 2001 From: Sam Hemelryk Date: Tue, 27 Nov 2012 10:16:08 +1300 Subject: [PATCH] MDL-36825 cachestore_file: fixed isready condition check --- cache/stores/file/lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cache/stores/file/lib.php b/cache/stores/file/lib.php index 1d9bb427603..bcfbf409d45 100644 --- a/cache/stores/file/lib.php +++ b/cache/stores/file/lib.php @@ -123,7 +123,7 @@ class cachestore_file extends cache_store implements cache_is_key_aware, cache_i } if ($path !== false && !is_writable($path)) { $path = false; - debugging('The given file cache store path is not writable. '.$path, DEBUG_DEVELOPER); + debugging('The file cache store path is not writable for `'.$name.'`', DEBUG_DEVELOPER); } } else { $path = make_cache_directory('cachestore_file/'.preg_replace('#[^a-zA-Z0-9\.\-_]+#', '', $name)); @@ -151,7 +151,7 @@ class cachestore_file extends cache_store implements cache_is_key_aware, cache_i * @return bool */ public function is_ready() { - return ($this->path !== null); + return $this->isready; } /** -- 2.43.0