What problem does it solve?
Review and implement WordPress query-cache usage for WP 6.9+ with salted cache helpers. This guide explains how to replace direct interactions with query-cache groups by using salted helpers like wp_cache_get_salted, wp_cache_set_salted, and related last_changed salts, to ensure correctness and reduce stale keys. It also helps plugin authors understand when to prefer native WordPress query APIs over manual cache writes.
Core Features & Use Cases
- Understand salted cache helpers and when to apply them in post-queries, term-queries, user-queries, and other groups.
- Identify scenarios where direct object-cache writes lead to stale data and how to remediate with core APIs.
- Use cases include optimizing expensive reads, persistent object cache behavior, and bug-safe cache invalidation.
Quick Start
Audit and refactor direct query-cache writes in your plugin code to use salted cache helpers and core query APIs where appropriate.