Closed (fixed)
Project:
Redis
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
18 Jan 2025 at 21:07 UTC
Updated:
3 Feb 2025 at 12:44 UTC
Jump to comment: Most recent
invalidateAll() has been proposed to be deprecated and removed from core #3498947: Deprecate CacheBackendInterface::invalidateAll(), see reasons there.
Redis will only be able to fully remove this once it requires a version of Drupal that has this API fully removed.
As an intermediate step, this allows to opt-in to a new behavior that treats invalidateAll() like a deleteAll(), which saves an extra cache tag lookup for each bin.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
berdirThis seems to work quite well, tested quite a bit in combination with a few core performance issues I worked on.
Comment #5
berdirMerged, also created a change record.
Comment #6
berdirComment #8
rbrandon commented@berdir is there a downside to opting into this? seems like the same data would be returned in both cases but without the cache tag lookup? I wasn't sure if deleteall hit any other data that would not normally be cleared, for example if it hits a cache with a different prefix.