mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
da2a530274
commit
bf8f089caf
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user