BUGFIX Don't skip flushCache() extension if $cache_get_one is empty on DataObject->flushCache()

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@90082 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2009-10-26 20:54:50 +00:00
parent 79773042be
commit 2527b1543d

View File

@ -2708,8 +2708,6 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity
return;
}
if(!self::$cache_get_one) return;
$classes = ClassInfo::ancestry($this->class);
foreach($classes as $class) {
if(isset(self::$cache_get_one[$class])) unset(self::$cache_get_one[$class]);