Caching arbitrary objects (MGNLCACHE-55)

[MGNLCACHE-59] Update tasks for default cache configuration node Created: 02/Jun/14  Updated: 06/Feb/15  Resolved: 13/Aug/14

Status: Closed
Project: Cache Modules
Component/s: configuration
Affects Version/s: None
Fix Version/s: 5.4

Type: Sub-task Priority: Neutral
Reporter: Magnolia International Assignee: Magnolia International
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Date of First Response:

 Description   
  • With MGNLCACHE-55, we're adding support for multiple cache configurations. While the code still supports EhCacheFactory.get/setDefaultCacheConfiguration, we should migrate existing configurations to the better, new, layout. In short, this just means moving /modules/cache/config/cacheFactory/defaultCacheConfiguration to /modules/cache/config/cacheFactory/caches/default
  • With MGNLCACHE-55, we're renaming CacheModule.configurations to contentCaching so we need to rename /modules/cache/config/configurations to contentCaching as well.
  • With MGNLCACHE-32, we should probably update our default cache (some properties have been renamed and added between the versions)
  • With MGNLCACHE-32, we can't use a cache called "default" (but a cache configuration named "default" is used for all unconfigured caches), so we need to rename /modules/cache/config/configurations/default to (for example) defaultPageCache, and change the value of /server/filters/cache/cacheConfigurationName accordingly. (because this name is used for both the contentCaching config name AND the actual cache name.

This also implies changes to info.magnolia.module.cache.filter.CacheConfigurationSetupTest

We'll also need to update a few modules (dam, commenting, ...) which add configuration to cache policies.



 Comments   
Comment by Magnolia International [ 13/Aug/14 ]

Pushed to feature/cache-arbitrary-objects-2 branch.
Unfortunately "had to" commit together in one commit which includes update tasks for MGNLCACHE-32 and MGNLCACHE-66 at the same time.

Comment by Roman Kovařík [ 14/Aug/14 ]

Deprecated properties are not removed on update:

  • /modules/cache/config/cacheFactory/caches/default@overflowToDisk=true
  • /modules/cache/config/cacheFactory/caches/default@diskPersistent=true
Comment by Magnolia International [ 19/Aug/14 ]

Thanks, fixed that on the branch (to be squashed on merge)

Generated at Sun Feb 11 23:51:48 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.