Upgrade Ehcache to the latest (2.10.0) (MGNLCACHE-32)

[MGNLCACHE-60] Revise EhCacheFactory Created: 04/Jun/14  Updated: 06/Feb/15  Resolved: 05/Feb/15

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

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

Issue Links:
supersession
supersedes MGNLCACHE-68 Set explicit name for Ehcache CacheMa... Closed
Template:
Date of First Response:

 Description   
  1. Register cacheManager with context path.
  2. Verify if we still need to load defaults from ehcache-failsafe.xml
    In info.magnolia.module.cache.ehcache.EhCacheFactory#start we do ConfigurationFactory.parseConfiguration(), which is meant to load ehcache default configuration in case we have none. While this might be interesting for users who'd want to have an xml based configuration, this seems counter-intuitive with our tree-based configuration.
    Besides, when there is no specific xml configuration, ehcache fallbacks on its ehcache-failsafe.xml file, which :
  • logs a warning about not finding configuration, which is confusing (since there IS configuration, we just haven't tried loading it yet)
  • only sets up a default cache config and a disk store path - and we always reconfigure both of these.


 Comments   
Comment by Roman Kovařík [ 05/Feb/15 ]

Commits:
https://git.magnolia-cms.com/gitweb/?p=modules/cache.git;a=commitdiff;h=162140172b089a5c2f13f21ef31cbbb5392ae0c2
https://git.magnolia-cms.com/gitweb/?p=modules/cache.git;a=commitdiff;h=1e69df73aab1ee722f4f0936909604e6ba01aa80

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