Smart Cache
Advanced WordPress cache plugin with React dashboard, page/object/DB cache, CDN, and optimization.
by Devin · github.com/mrshahbazdev/advanced-cache-for-wordpress
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/mrshahbazdev/advanced-cache-for-wordpress/archive/refs/heads/main.zipSmart Cache — Advanced WordPress Cache Plugin
Smart Cache is a free, advanced WordPress caching plugin built with React 18, Vite, and Material UI v5. It delivers page caching, object/DB cache wrappers, CDN rewrite, Cloudflare purge, image and frontend optimizations, heartbeat control, cache preload, and a real-time analytics dashboard — with all premium-equivalent features included free.
Free Features (No Pro Version)
- Page cache engine with Simple & Expert modes
- Configurable TTL and cache exclusions by URL, user agent, cookie, query parameter, and post type
- Mobile device cache separation
- Object cache and database query cache wrappers
- CDN URL rewrite for static assets
- Cloudflare cache purge integration
- HTML minification, lazy loading images, async image decoding, JS defer
- Heartbeat interval and Cache-Control max-age controls
- One-click cache clear and cache preload
- Real-time analytics dashboard with hit/miss/generated charts
- REST API for all settings, stats, clear, preload, and Cloudflare purge
Installation
- Download
advanced-cache-for-wordpress.zip. - In WordPress admin go to Plugins → Add New → Upload Plugin.
- Activate Smart Cache.
- Click Smart Cache in the admin menu.
Screenshots
Real-time cache dashboard showing hit rate, cached files, and cache status.
Page cache settings: enable/disable, mode, TTL, and exclusion rules.
CDN URL rewrite and Cloudflare cache purge.
Toggle HTML minify, lazy load, defer JS, DB cache, object cache, heartbeat, and Cache-Control.
One-click cache preload to warm public pages.
Bar chart of cache hits, misses, and generated files.
REST API
Namespace: sac/v1
| Endpoint | Method | Description |
|---|---|---|
/settings |
GET, PUT | Read or update settings |
/stats |
GET | Read cache statistics |
/clear |
POST | Clear all page cache files |
/preload |
POST | Schedule cache preload cron |
/cloudflare/purge |
POST | Purge Cloudflare cache by zone and token |
Example:
curl -H "X-WP-Nonce: <nonce>" \
"http://example.com/?rest_route=/sac/v1/stats"
Requirements
- WordPress 6.0+
- PHP 7.4+
- Modern browser for the React admin UI
License
GPL-2.0-or-later