[wp-trac] [WordPress Trac] #4476: Delete Cache by Group
WordPress Trac
noreply at wordpress.org
Tue Mar 1 18:32:04 UTC 2022
#4476: Delete Cache by Group
--------------------------------------+------------------------------
Reporter: filosofo | Owner: (none)
Type: enhancement | Status: reopened
Priority: normal | Milestone: Awaiting Review
Component: Cache API | Version: 2.2
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+------------------------------
Comment (by spacedmonkey):
I understand the desire for this ticket to go into core. But apart from
the redis examples seen in this ticket, how would this work in other
object cache drop-ins. How would this work for a memcache implementation?
If someone could link to or provide a code snippet for a memcache or other
object cache implement, that would be helpful.
If we can reliably have a way for keys in a group to be in core, then
sadly, this function can not live core. The worry is that someone calls
`wp_cache_delete_group` and it simply does not work. If this function
existing in core, we could need some way to backfill / pollyfil, like done
in wp_cache_get_multiple patch. Again, a can't think of a good way to do
this without massively refactoring the internals of the object cache.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/4476#comment:22>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list