[MGNLCACHE-296] DOC-DEV: Review the Caching-arbitrary-objects page (6.2) Created: 01/Jun/23  Updated: 01/Jun/23

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

Type: Task Priority: Neutral
Reporter: Martin Drápela Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: Not Specified Time Spent: Not Specified
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Sub-Tasks:
Key
Summary
Type
Status
Assignee
MGNLCACHE-297 DOC-DEVsub: Review the Caching-arbitr... Sub-task To Do  
MGNLCACHE-298 DOC-DEVsub: Review the Caching-arbitr... Sub-task To Do Martin Drápela  
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Epic Link: DevX Bucket
Story Points: 3
Team: DeveloperX

 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");
}
}

 


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