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

WordPress Trac noreply at wordpress.org
Wed Aug 27 17:04:00 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 stephdau):

 I'm also curious about why we don't check the blog's existence before
 switching to it.
 Performance (must go to DB directly, no functions or could hit mistakenly
 uncleared cache too)?!?

 I also wanted to not 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).

 Good catch, btw.

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


More information about the wp-trac mailing list