# Isolate WordPress Staging and Production Redis Cache Keys

https://ferkesh.net/zh/knowledgebase/article/wordpress-redis-isolate-staging-cache-keys

A cloned WordPress configuration can point two sites to the same Redis endpoint, database and prefix. Work on an isolated staging copy and check which prefix option the installed object-cache drop-in actually reads.

![Workflow. Cloned configuration. Dedicated staging prefix. Cross-request marker. Production namespace review.](https://ferkesh.net/kb-media/ferkesh-guide-diagrams-batch-14a.svg#wordpress-redis-isolate-staging-cache-keys)

## Identify the active implementation

Record the plugin, drop-in version and the intended backend for each environment without copying its credentials into the ticket. The Redis Object Cache plugin documents WP_REDIS_PREFIX. Other integrations may use different options. Prefer a separate backend or credentials where the host offers that separation.

## Set a unique namespace before enabling staging cache

Give the staging installation its own approved prefix and verify it loads before WordPress initializes the object cache. Confirm the staging diagnostics report the intended endpoint and cache status. Review how the plugin handles flushes before touching any remnant of the old namespace. Avoid a full Redis flush on a shared instance.

## Test from independent authenticated requests

Use a harmless synthetic key and an isolated test group. In staging, write and read a known marker in separate requests. Confirm it persists across requests and is inaccessible to a separate disposable control environment with a different prefix. If production verification is required, ask the infrastructure owner for read-only confirmation of its effective namespace. Keep internal endpoint details out of customer-facing notes.

## Expected result

The configuration review and cross-request fixture demonstrate distinct namespaces and working persistence. Recheck the staging prefix after cloning or refreshing content.

## Related guides

- [How to Audit WordPress Drop-Ins on a Staging Copy](https://ferkesh.net/knowledgebase/article/wordpress-dropin-inventory-staging)
- [How to Tell a WordPress Object Cache from a Page Cache](https://ferkesh.net/knowledgebase/article/wordpress-object-cache-vs-page-cache)

## Official references

- [Redis Object Cache installation and configuration](https://github.com/rhubarbgroup/redis-cache/blob/develop/INSTALL.md)
- [WordPress persistent object cache documentation](https://developer.wordpress.org/advanced-administration/wordpress/wp-config/)

Ferkesh Hosting. Last reviewed November 27, 2026.
