MDL-57427 cache: Use perfdebug only when enabled

This commit is contained in:
Jonathan Champ
2017-01-09 10:19:02 -05:00
committed by Jonathan Champ
parent edab0782a3
commit e3d53b99aa
2 changed files with 54 additions and 1 deletions
+1 -1
View File
@@ -213,7 +213,7 @@ class cache implements cache_loader {
$this->definition = $definition;
$this->store = $store;
$this->storetype = get_class($store);
$this->perfdebug = !empty($CFG->perfdebug);
$this->perfdebug = (!empty($CFG->perfdebug) and $CFG->perfdebug > 7);
if ($loader instanceof cache_loader) {
$this->loader = $loader;
// Mark the loader as a sub (chained) loader.