[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 18:57:15 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 ryan):

 Core calls update_object_term_cache() strictly to prime caches, not
 propagate changes. Any plugin using this function to propagate changes to
 a post's relationships to the cache must be doing very naughty things like
 bare SQL queries.  In general, we prefer the delete/add model to the set
 model. So, the use of wp_cache_set() instead of wp_cache_add() here seems
 to be an unintended artifact.

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


More information about the wp-trac mailing list