#108073RedisBackend fails to maintain bidirectional tag-to-identifier mappings, causing `flushByTag()` to silently fail
Description
The `RedisBackend` class creates cache entries with tags but only maintains the forward index (`identTags:*` – identifier → tags) and fails to populate the reverse index (`tagIdents:*` – tag → identifiers). This causes `flushByTag()` to not clear any cache entries because it relies on the reverse index to find affected identifiers.
Expected Behavior
When a cache entry is created with tags, both indices should be populated:
Forward index (identifier → tags):
SMEMBERS identTags:1320_1c9627389ba5d2c1c527e5ec1914e79f0a15d134
→ ["pageId_1320"]
Reverse index (tag → identifiers):
SMEMBERS tagIdents:pageId_1320
→ ["1320_1c9627389ba5d2c1c527e5ec1914e79f0a15d134"]
When `flushByTag(‘pageId_1320’)` is called:
1. Backend reads `tagIdents:pageId_1320` to get affected identifiers
2. Deletes all identifiers found in the set
3. Clears both forward and reverse indices
4. Cache entry for page 1320 is removed
Actual Behavior
When a cache entry is created with tags:
Forward index (identifier → tags): ✅
SMEMBERS identTags:1320_1c9627389ba5d2c1c527e5ec1914e79f0a15d134
→ ["pageId_1320"]
Reverse index (tag → identifiers): ❌
SMEMBERS tagIdents:pageId_1320
→ (empty array)
When `flushByTag(‘pageId_1320’)` is called:
1. Backend reads `tagIdents:pageId_1320` → finds nothing
2. Returns early because set is empty (line 472-477 in RedisBackend.php)
3. No cache entries are cleared
4. Cache entry for page 1320 remains, showing stale content
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Files 1
History 4
-
Ralf Hübner changed attached TYPO3-RedisBackend-Tag-Bug-Report.md <span data-processor="relativetime" data-value="2025-11-12T14:24:02+00:00" > 11/12/25, 14:24 </span>
-
Garvin Hicking changed Tags
cache redis redisbackendcache redis redisbackend llm-ai-report <span data-processor="relativetime" data-value="2025-11-12T22:07:43+00:00" > 11/12/25, 22:07 </span> -
Christian Kuhn commented and changed status
NewRejected <span data-processor="relativetime" data-value="2025-11-12T23:53:08+00:00" > 11/12/25, 23:53 </span> -
Ralf Hübner commented <span data-processor="relativetime" data-value="2025-11-13T09:08:38+00:00" > 11/13/25, 09:08 </span>
Thank you for your support. It was a mist candle, sorry!
imho bogus. see test flushByTagRemovesTagToIdentifiersSetOfGivenTag().
please push a failing test that verifies your claim if you still think there is an issue.
please stop submitting AI generated issues.