[wp-trac] [WordPress Trac] #23290: When using switch_to_blog() with a persistent object cache that lacks wp_cache_switch_to_blog() support, non-persistent groups are not maintained

WordPress Trac noreply at wordpress.org
Fri Jan 25 05:28:45 UTC 2013


#23290: When using switch_to_blog() with a persistent object cache that lacks
wp_cache_switch_to_blog() support, non-persistent groups are not maintained
-------------------------+--------------------------
 Reporter:  markjaquith  |       Type:  defect (bug)
   Status:  new          |   Priority:  normal
Milestone:  3.6          |  Component:  Cache
  Version:               |   Severity:  normal
 Keywords:               |
-------------------------+--------------------------
 If you're using a persistent object cache that lacks the new
 `wp_cache_switch_to_blog()` support, WordPress core `else`s into a
 complete cache clobbering branch. It is smart about grabbing the global
 groups and re-adding those after `wp_cache_init()` is called, but it
 doesn't do the same for non-persistent groups. Those are a hardcoded
 array. So if you call `switch_to_blog()`, you would lose any custom-added
 non-persistent groups.

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


More information about the wp-trac mailing list