[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 Mar 25 09:23:19 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 simonwheatley):

 With a persistent Object Cache (i.e. a memcached implementation):

 1. Create a post ID 10 in blog 2
 2. From site 2, switch to blog 1
 3. Get post 10
 4. Restore current blog
 5. Go to site 2 and amend post 10

 WP will have automatically flushed the post 10 in the object cache for
 blog 2, but it is persisting in it's previous state in the object cache
 for blog 1.

 I can't think of a sane solution to this problem, I think we just have to
 wait for the cache in blog 1 to expire. Caveat Auctor, I guess.

 Separately: There is a way to add the {{{$blog_id}}} to W3TC Object Cache
 using the built in W3TC hooks, see
 [http://wordpress.org/support/topic/plugin-w3-total-cache-w3-total-cache-
 multisite-setup-featured-posts-on-main-site-from-sub-
 sites/page/2?replies=33#post-2024407 this forum post].

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


More information about the wp-trac mailing list