wp-query-cache
CommunityOptimize WordPress query cache with salted keys.
System Documentation
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.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: wp-query-cache Download link: https://github.com/Lonsdale201/wp-agent-skills/archive/main.zip#wp-query-cache Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.