[wp-trac] [WordPress Trac] #9500: Object caching is incompatible with mutative the_posts filters.

WordPress Trac wp-trac at lists.automattic.com
Tue Dec 8 17:54:19 UTC 2009


#9500: Object caching is incompatible with mutative the_posts filters.
--------------------------+-------------------------------------------------
 Reporter:  Antiarc       |       Owner:  ryan                                     
     Type:  defect (bug)  |      Status:  new                                      
 Priority:  normal        |   Milestone:  2.9                                      
Component:  Cache         |     Version:  2.7.1                                    
 Severity:  normal        |    Keywords:  has-patch needs-testing 2nd-opinion early
--------------------------+-------------------------------------------------
Changes (by Denis-de-Bernardy):

  * keywords:  has-patch needs-testing early => has-patch needs-testing
               2nd-opinion early


Comment:

 That being said, I'm 80% sure that this should get a wontfix: the more I
 look at it (I'm working on a query caching plugin, which could actually
 make use of that hook if WP had a few more in there), the more convinced I
 am that the current behavior is the correct one on this front.

 I'm pretty certain that you should be using the loop_start or the the_post
 filter (both were introduced in 2.8) for whatever you are trying to do. Or
 maybe even hook into the wp hook directly...

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


More information about the wp-trac mailing list