Details
-
Improvement
-
Resolution: Fixed
-
Minor
-
2.1 RC1
-
None
-
patch
-
Trivial
-
N/A
-
N/A
-
Awaiting Committer feedback
-
Description
This change will allow to simplify cache creating code.
Cache would be created in the following manner:
try { this.cache = Utils.getComponent(CacheManager.class).createNewCache( new CacheConfiguration(new LRUEvictionConfiguration(500), "xwiki.velocity_template_cache")); } catch (CacheException ce) { LOG.warn("Creation of Velocity template cache failed - no caching will be performed", ce); }