[wpmu-trac] [WordPress MU Trac] #805: wp_cache_init() 2nd call overwrites cache non persistent groups

WordPress MU Trac wpmu-trac at lists.automattic.com
Mon Dec 1 16:21:42 GMT 2008


#805: wp_cache_init() 2nd call overwrites cache non persistent groups
------------------------+---------------------------------------------------
 Reporter:  orensol     |       Owner:  somebody                                                     
     Type:  defect      |      Status:  new                                                          
 Priority:  normal      |   Milestone:                                                               
Component:  component1  |     Version:  2.0                                                          
 Severity:  normal      |    Keywords:  object_cache, wp_settings, wp_cache_add_non_persistent_groups
------------------------+---------------------------------------------------
 In wp-settings.php, object_cache is loaded and initialized with
 wp_cache_init().

 Then there is a call to:
   wp_cache_add_non_persistent_groups(array( 'comment', 'counts', 'plugins'
 ));

 which puts 'plugins' as a non persistent group. Later in wp-settings
 wp_cache_init() is called for a second time, which then overwrites the
 non_persistent_groups.

 The result it that your plugins are cached indefenitely, and if you add a
 file to /plugins/ directory, you can't see it on plugins activation screen
 (get_plugins returns the cached version).

-- 
Ticket URL: <http://trac.mu.wordpress.org/ticket/805>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser


More information about the wpmu-trac mailing list