[wp-trac] [WordPress Trac] #14992: When Object Caching is enabled switch_to_blog causes issues with some functions
WordPress Trac
wp-trac at lists.automattic.com
Fri Dec 16 21:40:18 UTC 2011
#14992: When Object Caching is enabled switch_to_blog causes issues with some
functions
------------------------------------+-----------------------------
Reporter: simonwheatley | Owner:
Type: defect (bug) | Status: new
Priority: high | Milestone: Future Release
Component: Multisite | Version:
Severity: major | Resolution:
Keywords: dev-feedback 3.2-early |
------------------------------------+-----------------------------
Comment (by RogerTheriault):
It seems the switch / restore code doesn't always call wp_cache_init() to
recreate the $wp_object_cache, so the key can be incorrect in certain
cases. Hooking to switch_blog and doing something like
`$wp_object_cache->blog_prefix = $blog_id . ':';`
might help, in addition to the original poster's recommendation.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14992#comment:17>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list