mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-58658 caching: Fix static acceleration for empty arrays
This commit is contained in:
parent
6d14355ce8
commit
32ec2da151
4
cache/classes/loaders.php
vendored
4
cache/classes/loaders.php
vendored
@ -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 ;) !
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user