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

WordPress Trac noreply at wordpress.org
Fri Aug 29 03:29:34 UTC 2014


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

Comment (by rmccue):

 Replying to [comment:1 stephdau]:
 > I also wanted to note that if we move to checking for the blog's
 existence before switching to it, we should also likely do the same in
 `restore_current_blog()`, for consistency and safety (although I'd hate to
 see what missing-previous-blog case would do to running code IRL :p).

 Theoretically, you should be able to `switch_to_blog` then delete the old
 blog without breaking any code. Nothing should be popping from the stack
 (restoring) without having pushed (switching) beforehand; that is, you
 should only be touching the part of the stack you're responsible for.

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


More information about the wp-trac mailing list