Skip to content

APCu cache collisions upon activating a staging clone in the same server pool, same WP_CACHE_KEY_SALT #87

@OllieJones

Description

@OllieJones

https://wordpress.org/support/topic/site-db-reverted/

Cache values get clobbered on staging sites.

To reproduce:

  1. Turn on APCu.
  2. Clone a site to a different SNI hostname or something.
  3. 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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions