[wp-trac] [WordPress Trac] #11431: object cache's terms bucket potentially contains junk
WordPress Trac
wp-trac at lists.automattic.com
Thu Dec 24 17:17:08 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 dev-feedback
-------------------------------+--------------------------------------------
Changes (by Denis-de-Bernardy):
* keywords: has-patch => has-patch dev-feedback
Old description:
> We've a few occurrences of things such as:
>
> {{{
> wp_cache_add( $cache_key, $terms, 'terms' );
> }}}
>
> ... in taxonomy.php. These are not flushed when the terms cache gets
> flushed, and end up stored in memcached indefinitely. We should at least
> add a timeout, maybe after a day.
>
> Better yet, we should flush them properly.
New description:
We've a few occurrences of things such as:
{{{
wp_cache_add( $cache_key, $terms, 'terms' );
}}}
... in taxonomy.php. These are not flushed when the terms cache gets
flushed, and end up stored in memcached indefinitely. We should at least
add a timeout, maybe after a day.
Better yet, we should flush them properly.
--
Comment:
I've been working with the patch applied for a couple days. No side
effects apart from the obvious extra query per day.
@Ryan: do you need it massaged any further?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11431#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list