fix: inverted tag expiration in Redis handler + saveItemOptions board name

- Fix critical bug: tag expiration comparison was inverted (< should be >)
  in Redis cache handler, which would prevent revalidateTag from clearing
  stale entries
- Pass board name to invalidateBoardCache in saveItemOptions
- Add clarifying comment about two-tier invalidation helpers
This commit is contained in:
Thomas Camlong committed 2026-08-07 19:30:58 +02:00
1 parent aeabfd3521
commit 67fcd69eb8
3 files changed
+12 -2

No files matched your search

@@ -57,7 +57,7 @@ export class RedisCacheHandler implements CacheHandler {
const allTags = [...parsed.tags, ...softTags];
const expiration = await this.getExpiration(allTags);
if (expiration !== 0 && expiration < parsed.timestamp) {
if (expiration !== 0 && expiration > parsed.timestamp) {
return undefined;
}