Setting the file. One moment. Object Cache · Wp Performance · WordPress/agent-skills · Skills Docs
Use this file when profiling indicates repeated queries or low cache hit rate.
- Default WP object cache is per-request memory only.
- A persistent object cache “drop-in” (
wp-content/object-cache.php) can persist cache across requests.
wp cache flush can impact all sites in multisite and cause load spikes:
- Cache expensive computed results (transients or object cache) with explicit invalidation.
- Avoid unbounded caches (set expirations or implement invalidation hooks).
- If adding a persistent object cache, coordinate with infra (Redis/Memcached) and test cache flush behavior.
references/object-cache.md