Details
-
Type:
Improvement
-
Status: Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 3.0
-
Fix Version/s: None
-
Component/s: Cache
-
Labels:None
-
Similar issues:
Description
Here's a use case:
{{groovy}} def docInCache = new HashMap() def cache = xwiki.getXWiki().store.cache; def jcache = xwiki.getXWiki().getPrivateField(cache, "cache"); def items = jcache.getRoot().getChildren(); for (item in items) { for (child in item.getChildren()) { for (doc in child.getData().values()) { def key = (doc.language==null) ? "${doc.database}:${doc.fullName}" : "${doc.database}:${doc.fullName}:${doc.language}" docInCache.put(key, doc.version) // println "${key}: ${doc.version}" } } } ...