This repository was archived by the owner on May 6, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,11 @@ public function getNamespace(): string
2727 {
2828 // The timestamp from when last saving settings/modules to the DB
2929 $ userSettingsManager = UserSettingsManagerFacade::getInstance ();
30- return '_ ' . $ userSettingsManager ->getTimestamp ();
30+ $ timestamp = '_ ' . $ userSettingsManager ->getTimestamp ();
31+ // admin/non-admin screens have different services enabled
32+ if (\is_admin ()) {
33+ $ timestamp .= '_admin ' ;
34+ }
35+ return $ timestamp ;
3136 }
3237}
Original file line number Diff line number Diff line change @@ -11,10 +11,15 @@ class ApplicationStateHooks extends AbstractHookSet
1111{
1212 protected function init ()
1313 {
14- $ this ->hooksAPI ->addFilter (
15- ModelInstance::HOOK_COMPONENTSFROMVARS_RESULT ,
16- [$ this , 'addComponent ' ]
17- );
14+ // ----------------------------------------
15+ // Commented, since `is_admin` is added to
16+ // `CacheConfigurationManager.getNamespace()`
17+ // ----------------------------------------
18+ // $this->hooksAPI->addFilter(
19+ // ModelInstance::HOOK_COMPONENTSFROMVARS_RESULT,
20+ // [$this, 'addComponent']
21+ // );
22+ // ----------------------------------------
1823 }
1924 /**
2025 * Admin and non-admin have different schemas
You can’t perform that action at this time.
0 commit comments