Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-36825 cachestore_file: fixed isready condition check

  • Loading branch information...
commit e4f71b7c8f99f1f74c576c0a29795ee0443cd187 1 parent ae8530e
@samhemelryk samhemelryk authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 cache/stores/file/lib.php
View
4 cache/stores/file/lib.php
@@ -123,7 +123,7 @@ public function __construct($name, array $configuration = array()) {
}
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 @@ public function __construct($name, array $configuration = array()) {
* @return bool
*/
public function is_ready() {
- return ($this->path !== null);
+ return $this->isready;
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.