BUGFIX: Disable some permission caching for now, as it was breaking unit tests (from r98504) (from r99303)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@102854 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-04-14 04:11:38 +00:00
parent da2a530274
commit bf8f089caf

View File

@ -1113,9 +1113,12 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
if(isset($combinedStageResult)) {
// Cache results
foreach($combinedStageResult as $id => $val) {
// TODO - Caching permissions is breaking unit tests. One possible issue
// is the cache needs to be flushed when permission on a page is changed,
// but this only solved some of the failing unit tests. Disabled for now.
/*foreach($combinedStageResult as $id => $val) {
self::$cache_permissions[$typeField][$id] = $val;
}
}*/
return $combinedStageResult;
} else {
array();