MDL-58658 caching: Fix static acceleration for empty arrays

This commit is contained in:
Skylar Kelty 2017-04-20 09:49:09 +01:00 committed by GitHub
parent 6d14355ce8
commit 32ec2da151

View File

@ -1077,7 +1077,7 @@ class cache implements cache_loader {
$result = $data;
}
}
if ($result) {
if ($result !== false) {
if ($this->perfdebug) {
cache_helper::record_cache_hit('** static acceleration **', $this->definition);
}
@ -2162,4 +2162,4 @@ class cache_session extends cache {
*/
class cache_request extends cache {
// This comment appeases code pre-checker ;) !
}
}