Branch: refs/heads/master
Home:
https://github.com/xwiki/xwiki-platform
Commit: 9fff30a007dc2d6bd8a3f4fb557324d138c9ee33
https://github.com/xwiki/xwiki-platform/commit/9fff30a007dc2d6bd8a3f4fb5573…
Author: Michael Hamann <michael.hamann(a)xwiki.com>
Date: 2025-04-03 (Thu, 03 Apr 2025)
Changed paths:
M
xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/store/XWikiCacheStore.java
M
xwiki-platform-core/xwiki-platform-oldcore/src/test/java/com/xpn/xwiki/store/XWikiCacheStoreTest.java
M
xwiki-platform-core/xwiki-platform-oldcore/src/test/java/com/xpn/xwiki/test/MockitoOldcore.java
Log Message:
-----------
XWIKI-23055: The document cache may not be properly invalidated in case of concurrent
loads (#4017)
* Use CacheLoader to synchronize cache loads.
* Add tests for the scenario in the issue and some more scenarios.
* Mock com.xpn.xwiki.store.XWikiStoreInterface.saveXWikiDoc(
com.xpn.xwiki.doc.XWikiDocument, com.xpn.xwiki.XWikiContext, boolean) in
MockitoOldcore to make testing of the cache store easier.
* Reduce duplication in invalidation by always performing null checks
and never storing anything as storing "false" after a document is
deleted might be dangerous.
To unsubscribe from these emails, change your notification settings at
https://github.com/xwiki/xwiki-platform/settings/notifications