Branch: refs/heads/manuelleduc/xwiki-13300-change-saved-into-a-less-ssx-that-is Home: https://github.com/xwiki/xwiki-platform Commit: b10ec668774ee560c26a8b26684a219086123074 https://github.com/xwiki/xwiki-platform/commit/b10ec668774ee560c26a8b26684a2... Author: Manuel Leduc <[email protected]> Date: 2026-10-15 (Thu, 15 Oct 2026) Changed paths: M xwiki-platform-core/xwiki-platform-lesscss/xwiki-platform-lesscss-api/src/main/java/org/xwiki/lesscss/internal/cache/LESSCache.java M xwiki-platform-core/xwiki-platform-lesscss/xwiki-platform-lesscss-default/src/main/java/org/xwiki/lesscss/internal/cache/AbstractCache.java M xwiki-platform-core/xwiki-platform-lesscss/xwiki-platform-lesscss-default/src/main/java/org/xwiki/lesscss/internal/cache/AbstractCachedCompiler.java M xwiki-platform-core/xwiki-platform-lesscss/xwiki-platform-lesscss-default/src/test/java/org/xwiki/lesscss/internal/cache/DefaultLESSResourcesCacheTest.java M xwiki-platform-core/xwiki-platform-lesscss/xwiki-platform-lesscss-default/src/test/java/org/xwiki/lesscss/internal/compiler/DefaultLESSCompilerTest.java Log Message: ----------- XWIKI-13300: Change saved into a LESS SSX that is already cache does not always get recompiled * Version the LESS cache: every clear increments a single version, and a computed result is only stored when the version read before the computation is still current, so CSS compiled from the old content is no longer cached after a save. * Synchronize the set and clear operations of AbstractCache so that a key registered during a clear is not lost. * Remove the unversioned LESSCache.set and read the version in AbstractCachedCompiler before computing. * Add unit tests for the versioned set and for a set racing with a clear. Co-Authored-By: Claude Opus 5.5 <[email protected]> To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications