orbit-cache-compat
CommunityEnsure WordPress plugin compatibility with object and page caches
Software Engineering#performance#WordPress#cache invalidation#plugin compatibility#object cache#page cache
Authoradityaarsharma
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Detects incompatibilities in WordPress plugins that could lead to performance issues due to improper use of object and page caches, such as plugins that store mutable data without invalidation, set cookies that bust the page cache, or read from wp_options without respecting the cache.
Core Features & Use Cases
- Object Cache Awareness: Checks for proper use of object caches like Redis and Memcached.
- Cache Invalidation on Writes: Ensures that plugins invalidate caches on data writes.
- Page Cache Bustining Cookies: Verifies that plugins do not set cookies that bust the page cache for all users.
nocache_headers()Overuse: Identifies overuse ofnocache_headers()which can disable page caching for the entire site.- Transient Explosion: Alerts about excessive use of transients that can lead to database overload.
- Object Cache Key Collisions: Checks for key collisions in object cache usage.
- Honour
WP_CACHEConstant: Ensures that plugins respect theWP_CACHEconstant. - Page Cache Plugin Compatibility: Verifies compatibility with popular page caching plugins like W3 Total Cache, WP Rocket, LiteSpeed, and Varnish.
- Test on Object Cache: Provides instructions to test object cache functionality with wp-env and Redis.
Quick Start
Run the object cache compatibility check on your plugin with the command: bash ~/Claude/orbit/scripts/check-object-cache.sh ~/plugins/my-plugin
Dependency Matrix
Required Modules
None requiredComponents
scripts
💻 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: orbit-cache-compat Download link: https://github.com/adityaarsharma/orbit/archive/main.zip#orbit-cache-compat 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 620,000+ vetted skills library on demand.