mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #2605 from willmorgan/cachetofile-false-fix
Strict type check for null cache values
This commit is contained in:
commit
7361d0a6ac
@ -1077,7 +1077,9 @@ abstract class Object {
|
||||
if($ID) $cacheName .= '_' . $ID;
|
||||
if(count($arguments)) $cacheName .= '_' . md5(serialize($arguments));
|
||||
|
||||
if($data = $this->loadCache($cacheName, $lifetime)) {
|
||||
$data = $this->loadCache($cacheName, $lifetime);
|
||||
|
||||
if($data !== false) {
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user