https://wordpress.org/support/topic/site-db-reverted/
Cache values get clobbered on staging sites.
To reproduce:
- Turn on APCu.
- Clone a site to a different SNI hostname or something.
- Restore it in the same php_fpm or apache pool as the original site.
When a site is cloned (to a staging copy of the site for example) within the same server pool the APCu cache gets corrupted.
This is probably also an issue with other users of WP_CACHE_KEY_SALT.
Workaround:
Disable the APCU caching before cloning.
Deactivate the plugin before cloning.
Change the WP_CACHE_KEY_SALT after cloning.
Then, and only then, reactivate the plugin and re-enable APCu.