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

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@99303 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-02-16 22:20:16 +00:00 committed by Sam Minnee
parent 833db1b5a6
commit ea665cd45e

View File

@ -1093,9 +1093,12 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
if(isset($combinedStageResult)) { if(isset($combinedStageResult)) {
// Cache results // 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; self::$cache_permissions[$typeField][$id] = $val;
} }*/
return $combinedStageResult; return $combinedStageResult;
} else { } else {
array(); array();