[wp-trac] [WordPress Trac] #11431: object cache's terms bucket potentially contains junk
WordPress Trac
wp-trac at lists.automattic.com
Mon Dec 14 20:26:28 UTC 2009
#11431: object cache's terms bucket potentially contains junk
-------------------------------+--------------------------------------------
Reporter: Denis-de-Bernardy | Owner: ryan
Type: enhancement | Status: new
Priority: normal | Milestone: 3.0
Component: Cache | Version:
Severity: normal | Keywords: has-patch
-------------------------------+--------------------------------------------
Comment(by Denis-de-Bernardy):
Replying to [comment:3 filosofo]:
> Why not do something like I suggested a while ago: #4476. Delete cache
items by group name. Then the clean_term_cache() could just flush all
members of the "terms" group. Problem solved, right?
It would, if memcached allowed to partially flush keys using wildcards.
Trouble is, memcached offers only two option, mark this very specific key
as obsolete, and mark all keys as obsolete.
there are a few bits in backpress' memcached that allow to to flush an
entire bucket, but I'm 100% sure that it is not concurrent proof: (I
interacted the pecl package's author last year in order to convince him to
implement locks for memcached-based session handling. It's the only thing
in the memcached pecl with any type of locking.)
@Ryan: the file I sent you the other day implements flush (as in, full
flush) quite fine. But no partial flush.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11431#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list