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

WordPress Trac wp-trac at lists.automattic.com
Sun Nov 14 02:16:10 UTC 2010


#15361: wp_start_object_cache() should be called within blog switching methods
instead of wp_cache_init()
--------------------------+-------------------------------------------------
 Reporter:  prettyboymp   |        Owner:        
     Type:  defect (bug)  |       Status:  closed
 Priority:  normal        |    Milestone:  3.1   
Component:  Cache         |      Version:        
 Severity:  normal        |   Resolution:  fixed 
 Keywords:                |  
--------------------------+-------------------------------------------------

Comment(by ryan):

 We don't really need to re-add global and non-persistent groups or do
 those file and function exists checks.  Maybe switch_to_blog() should
 directly call wp_cache_reset() if it exists otherwise do wp_cache_init().

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


More information about the wp-trac mailing list