[wp-trac] [WordPress Trac] #29247: Crucial caches are not cleared when deleting site
WordPress Trac
noreply at wordpress.org
Mon Aug 18 03:10:14 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 | Keywords:
Focuses: multisite |
--------------------------+-----------------------------
`clean_blog_cache` clears a bunch of caches, but does not clear any of the
options caches. The worst of these is the `alloptions` cache, which allows
some behaviour to continue working on deleted sites.
For example, `switch_to_blog` will continue to work without error, whereas
if the cache is cleared, a `Table 'wordpress.{$prefix}_options' doesn't
exist` error will be generated (helping in debugging).
Another one that's problematic is the `is_blog_installed` cache.
On that note, is there a reason we aren't checking site existence in
`switch_to_blog`?
(Still investigating this one.)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29247>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list