[wp-trac] [WordPress Trac] #14817: update_post_cache() fails when an object is already in the cache

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 9 00:55:39 UTC 2010


#14817: update_post_cache() fails when an object is already in the cache
--------------------------+-------------------------------------------------
 Reporter:  misterbisson  |       Owner:                 
     Type:  defect (bug)  |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:                 
 Severity:  normal        |    Keywords:                 
--------------------------+-------------------------------------------------
 The function uses wp_cache_add(), which cannot replace an existing object
 for the cache key. Should use wp_cache_set(), which happily replaces
 existing objects or inserts new ones.

 Attached patch fixes.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14817>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list