-
Bug
-
Resolution: Fixed
-
Neutral
-
1.7
-
Centos 7
-
-
Empty show more show less
-
Kromeriz 36
-
3
The advanced caching module creates several caches when 'createSeparateCachesForEachSite' is set. Each cache is created with the name of the site definition.
When caching the info.magnolia.module.advancedcache.filter.SiteAwareCacheFilter takes care of storing and serving the content in the corresponding site cache.
However the info.magnolia.module.advancedcache.SiteAwareFlushAllListeningPolicy which
extends from info.magnolia.module.advancedcache.AbstractSiteAwareListeningFlushPolicy does not use this mechanism. Instead it uses the cache name (which is the site definition name) as the path to the root of the tree in the workspace to watch. This observation is started in info.magnolia.module.cache.AbstractListeningFlushPolicy using the path provided by the FlushPolicy.
This breaks flushing in our case because of two reasons:
- The site definition is called pip-buitenhof but the node in the workspace buitenhof
- The site does not live at the root but in /programma/buitenhof
A second problem we don't encounter in our case is the fact that there is no discrimination between workspaces for the path. So the multisite content needs to live a the same place in all workspaces that are multisite aware.
It would be better if the FlushPolicy used the sitedefinition and its repository mappings to register the correct path and workspace to observe.
- depends upon
-
MGNLCACHE-132 AbstractListeningFlushPolicy#getPath might return multiple paths
- Closed
- is causing
-
MGNLCACHE-135 Starting site-aware advanced cache policies results into injection error
- Closed