[wp-trac] [WordPress Trac] #14379: Add cache invalidation to get_blogs_of_user()

WordPress Trac wp-trac at lists.automattic.com
Wed Jul 21 14:51:13 UTC 2010


#14379: Add cache invalidation to get_blogs_of_user()
--------------------------+-------------------------------------------------
 Reporter:  ryan          |       Owner:                 
     Type:  defect (bug)  |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Users         |     Version:  3.0            
 Severity:  normal        |    Keywords:                 
--------------------------+-------------------------------------------------
 Instead of doing proper cache invalidation, get_blogs_of_user() sets a 5
 second timeout on its cache. This results in lots of unnecessary queries.
 get_blogs_of_user() should set its cache without expiration and do
 invalidation where needed. Also, it should cache on a list blog ids.
 There is no need to cache what the get_blog_details() cache is already
 caching.

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


More information about the wp-trac mailing list