Skip to content

Commit

Permalink
MDL-58658 caching: Fix static acceleration for empty arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
sk-unikent authored Apr 20, 2017
1 parent 6d14355 commit 32ec2da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cache/classes/loaders.php
Original file line number Diff line number Diff line change
Expand Up @@ -1077,7 +1077,7 @@ protected function static_acceleration_get($key) {
$result = $data;
}
}
if ($result) {
if ($result !== false) {
if ($this->perfdebug) {
cache_helper::record_cache_hit('** static acceleration **', $this->definition);
}
Expand Down Expand Up @@ -2162,4 +2162,4 @@ protected function use_static_acceleration() {
*/
class cache_request extends cache {
// This comment appeases code pre-checker ;) !
}
}

0 comments on commit 32ec2da

Please sign in to comment.