mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
FIX Dont use var_export for cache key generation as it fails on circular references
This commit is contained in:
parent
f745442a55
commit
264cec1239
@ -3224,7 +3224,7 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity
|
||||
$SNG = singleton($callerClass);
|
||||
|
||||
$cacheComponents = array($filter, $orderby, $SNG->extend('cacheKeyComponent'));
|
||||
$cacheKey = md5(var_export($cacheComponents, true));
|
||||
$cacheKey = md5(serialize($cacheComponents));
|
||||
|
||||
// Flush destroyed items out of the cache
|
||||
if($cache && isset(DataObject::$_cache_get_one[$callerClass][$cacheKey])
|
||||
|
Loading…
x
Reference in New Issue
Block a user