[wp-trac] [WordPress Trac] #29247: Crucial caches are not cleared when deleting site

WordPress Trac noreply at wordpress.org
Wed Jan 20 01:51:31 UTC 2016


#29247: Crucial caches are not cleared when deleting site
-------------------------------------+-----------------------------
 Reporter:  rmccue                   |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Future Release
Component:  Cache API                |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  needs-patch 2nd-opinion  |     Focuses:  multisite
-------------------------------------+-----------------------------

Comment (by jeremyfelt):

 My best read on the intent of `clean_blog_cache()` is its use in
 `refresh_blog_details()` as a way to clear the network level cache for a
 site. Not as a way to clear site level data.

 As John mentions, things get deep quick with options, posts, terms, etc...
 I don't think we need to worry about that in `clean_blog_cache()`, though
 it could be something to consider more as part of the site deletion
 process itself.

 For the aside: It's always seemed to me that verifying the existence of a
 site during `switch_to_blog()` would add too much overhead. We blindly
 step into that site's place and run things in a completely different
 context (plugins, theme) than that site is normally part of. So many
 variables make that switch unreliable unless you're verifying it the way
 you need it to be verified first. Of course, there could be a creative way
 to solve that.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29247#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list