This issue has been created
 
 
XWiki Commons / cid:jira-generated-image-avatar-495211c8-e11f-4c4f-a0ae-caa132e47851 XCOMMONS-3300 Open

Add a cache loading helper to synchronize cache loads and invalidations

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-6b58824e-8dd7-4afa-ba5e-c5cbca10efdb Michael Hamann created this issue on 28/Mar/25 14:25
 
Summary: Add a cache loading helper to synchronize cache loads and invalidations
Issue Type: cid:jira-generated-image-avatar-495211c8-e11f-4c4f-a0ae-caa132e47851 Improvement
Affects Versions: 14.10
Assignee: Unassigned
Components: Cache
Created: 28/Mar/25 14:25
Priority: cid:jira-generated-image-static-major-d052b540-14a4-4626-92dd-60fcbef4fc30 Major
Reporter: Michael Hamann
Description:

With basically all caches in XWiki we have the situation that we need to prevent loading outdated data from before a cache invalidation. While some caches have custom solutions for it, others are lacking it, see XWIKI-23055. This issue is about introducing a generic and flexible helper for cache loading to make it easy to avoid that caches store outdated data. At the same time, the helper should avoid repeated computation of cache values by sharing the value between several loads that are running in parallel.