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)
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:
parent
833db1b5a6
commit
ea665cd45e
@ -1093,9 +1093,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