[wp-trac] [WordPress Trac] #15361: w_start_object_cache() should be called within blog switching methods instead of wp_cache_init()

WordPress Trac wp-trac at lists.automattic.com
Tue Nov 9 15:58:13 UTC 2010


#15361: w_start_object_cache() should be called within blog switching methods
instead of wp_cache_init()
--------------------------+-------------------------------------------------
 Reporter:  prettyboymp   |       Owner:                 
     Type:  defect (bug)  |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:                 
 Severity:  normal        |    Keywords:                 
--------------------------+-------------------------------------------------
 The switch_to_blog() and restore_current_blog() functions call
 wp_cache_init() directly, which causes the object cache instance to be
 recreated.  These methods should instead be calling the
 wp_start_object_cache() method which correctly checks whether
 wp_cache_init() or wp_cache_reset() should be used.

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


More information about the wp-trac mailing list