[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:46:55 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 leewillis77):

 Hi Ryan,

 Thanks for your comments. The usage is in plugins that wish to iterate
 over all posts (For some reason). The specific use case that caused this
 is generating an XML feed of product information from e-Commerce stores
 for Google Merchant Centre. 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

 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?

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


More information about the wp-trac mailing list