diff --git a/cache/locallib.php b/cache/locallib.php index db20b05fb2f..572e2f8e55c 100644 --- a/cache/locallib.php +++ b/cache/locallib.php @@ -68,6 +68,7 @@ class cache_config_writer extends cache_config { */ protected function config_save() { global $CFG; + static $confighash = ''; $cachefile = static::get_config_file_path(); $directory = dirname($cachefile); if ($directory !== $CFG->dataroot && !file_exists($directory)) { @@ -86,6 +87,15 @@ class cache_config_writer extends cache_config { // Prepare the file content. $content = "configlocks);