[wp-trac] [WordPress Trac] #22024: The query cache in WP_Comment_Query:query() is not invalidated when comments are added

WordPress Trac wp-trac at lists.automattic.com
Wed Oct 3 21:28:32 UTC 2012


#22024: The query cache in WP_Comment_Query:query() is not invalidated when
comments are added
--------------------------+-----------------------
 Reporter:  ryan          |       Owner:  ryan
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  3.5
Component:  Comments      |     Version:  3.4.2
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+-----------------------

Comment (by nacin):

 Replying to [comment:7 ocean90]:
 > In 3.5 we added `wp_cache_switch_to_blog()` and use it, so offering
 fallbacks should be the right way.

 Well, two different things. That's a limited-use method that does a
 function_exists() check, and if it doesn't exist, we do a decent amount of
 code. incr() and decr() are "nice-to-haves" that at worst can be replaced
 with a get() and set(). I'll let ryan determine what he wants to do here.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22024#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list