[wp-trac] [WordPress Trac] #19690: wp_suspend_cache_additions() doesn't block term_relationships being added to cache

WordPress Trac wp-trac at lists.automattic.com
Wed Jan 11 19:49:28 UTC 2012


#19690: wp_suspend_cache_additions() doesn't block term_relationships being added
to cache
--------------------------+------------------
 Reporter:  leewillis77   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.4
Component:  Cache         |     Version:  3.3
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------

Comment (by nacin):

 Replying to [comment:10 leewillis77]:
 > In this context you want to iterate over all posts, but there's no
 specific advantage in adding those posts (Or related information) to the
 cache.
 >
 > Background here:
 > http://code.google.com/p/wp-e-commerce/issues/detail?id=885

 As Ryan points out, the plugin should be setting cache_results to false
 for WP_Query.

 > My reading of the code in update_object_term_cache() is that the final
 bit will only be reached where the item doesn't already exist in the cache
 anyway - so changing to _add from _set should be realistically
 functionally equivalent?

 Yes.

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


More information about the wp-trac mailing list