[wp-trac] [WordPress Trac] #21434: Don't obliterate the object cache in switch_to_blog()

WordPress Trac wp-trac at lists.automattic.com
Sun Sep 30 15:07:15 UTC 2012


#21434: Don't obliterate the object cache in switch_to_blog()
-------------------------+---------------------
 Reporter:  ryan         |       Owner:  ryan
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  3.5
Component:  Cache        |     Version:  3.4.1
 Severity:  normal       |  Resolution:  fixed
 Keywords:               |
-------------------------+---------------------

Comment (by convissor):

 Replying to [comment:7 ryan]:
 > wp_cache_reset() was only ever implemented by the default, built-in
 cache. The other backends did not implement it. Now that we have
 switch_to_blog() it is even more useless since core never calls it.

 Deprecating  and removing the reset methods is fine.  Even if the reset
 method was never used anywhere inside WP's core, the method was there for
 the general public to use.  And they have, I'm living proof.

 The existing deprecation messages point people to the
 {{{switch_to_blog()}}} method, but that method does not clear the cache.

 The deprecation messages needs to be updated, please, to point people to a
 proper replacement: {{{flush()}}}.

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


More information about the wp-trac mailing list