Details
-
Task
-
Resolution: Unresolved
-
Neutral
-
None
-
None
-
None
-
None
-
-
Empty show more show less
-
Empty show more show less
-
3
Description
We have been notified by Tobias there may be issues on the page:
a customer tried to use "Caching arbitrary objects" as described in this documentation part:
https://docs.magnolia-cms.com/product-docs/6.2/Modules/List-of-modules/Cache-modules/Caching-arbitrary-objects.html#_get_the_cache Unfortunately, it was not working for him. But he got it working with a small change like this:public class MyClass { private final CacheFactoryProvider cacheFactoryProviderProvider; @Inject public MyClass(CacheFactoryProvider cacheFactoryProviderProvider) Unknown macro: { this.cacheFactoryProvider = cacheFactoryProvider; } public void fooBar(){ Cache cache = cacheFactoryProvider.get().getCache("fooBarCache"); } }
Checklists
Acceptance criteria