Cache Enabler – WordPress Cache


WordPress Cache Engine

The Cache Enabler plugin creates static HTML files and stores them on the servers disk. The web server will deliver the static HTML file and avoids the resource intensive backend processes (core, plugins and database). This WordPress cache engine will improve the performance of your website.


  • Efficient and fast disk cache engine
  • Automated and/or manual clearing of the cache
  • Manually clear the cache of specific pages
  • WP CLI cache clearing
  • Display of the actual cache size in your dashboard
  • Minification of HTML and inline JavaScript
  • WordPress multisite support
  • Custom Post Type support
  • Expiry Directive
  • Support of 304 Not Modified if the page has not modified since last cached
  • WebP Support (when combined with Optimus)
  • Supports responsive images via srcset since WP 4.4
  • Works perfectly with Autoptimize

Cache Enabler is the first WP plugin to allow you to serve WebP images without JavaScript and also fully supports srcset since WP 4.4. WebP is a new image format that provides lossless and lossy compression for images on the web. WebP lossless images are 26% smaller in size compared to PNGs.

How does the caching work?

This plugin requires minimal setup time and allows you to easily take advantage of the benefits that come from using WordPress caching.

The WordPress Cache Enabler has the ability to create 2 cached files. One is plain HTML and the other version is gzipped (gzip level 9). These static files are then used to deliver content faster to your users without any database lookups or gzipping as the files are already pre-compressed.

When combined with Optimus, the WordPress Cache Enabler allows you to easily deliver WebP images. The plugin will check your upload directory for any JPG or PNG images that have an equivalent WebP file. If there is, the URI of these image will be cached in a WebP static file by Cache Enabler. It is not required for all images to be converted to WebP when the “Create an additional cached version for WebP image support” option is enabled. This will not break any images that are not in WebP format. The plugin will deliver images that do have a WebP equivalent and will fall back to the JPG or PNG format for images that don’t.


  • Clear all page caches
    wp cache-enabler clear

  • Clear the cache for object IDs 1, 2, and 3
    wp cache-enabler clear –ids=1,2,3

  • Clear the cache for a particular URL
    wp cache-enabler clear –urls=


System Requirements

  • PHP >=5.6
  • WordPress >=4.6


  • Anyone is welcome to contribute to the plugin on GitHub.
  • Please merge (squash) all your changes into a single commit before you open a pull request.




  • Display of the cache size in your dashboard
  • Cache Enabler settings page and "Clear Cache" link in the dashboard


جولای 25, 2020
The plugin works great, but I am really writing because Thomas helped me fix a vexing issue on my site even though his plugin wasn't causing it! He stuck with me through many email exchanges even after it was clear that Cache Enabler wasn't the problem. Thanks Thomas!
جون 11, 2020
Among the cache plugins, this plugin is the simplest and most optimal, free, without Redundant settings and without destroying the performance of your site! It also supports "webp" format. If you need to combine template (css & js) files, use "autoptimise" with this plugin. Thanks devs.
اپریل 24, 2020
This is the only caching plugin I have used that caches backend URLs, including already published posts. Many times I've clicked on already published posts that I updated a day or two ago to add more updates, forgetting that what I am really opening is a cached version of the first published page. The result is losing edits I made when I click publish. Sometimes the clear cache option for those pages doesn't work. Plus, every good plugin should clear cache on static home pages when a new post is created. This doesn't, and my website publishes several times a day. It also doesn't play nice with CDNs, particularly Cloudflare. Installed this because its lightweight, but the extra work it brings is just not worth the lower server load. A great plugin, but maybe for mostly static sites that do not publish/update often. The backend caching is also annoying.
اپریل 14, 2020
This plugin does not allow third-party minifiers and optimizers to save their output in the cache. The cached HTML is the original version. Without this support, caching has limited impact.
مارچ 28, 2020
Best static cache plugin thank to authors. Even it miss/could have more features as sequential cache exclusion, dynamic widget, or similar, it is still the best in its category.
مارچ 26, 2020
Great work! A small plugin with not too much configurations that works really well. I've tested some other plugins with a lot of things, but this one does caching and some of minimizing with a one page configuration. I will recommend it! (y)
Read all 90 reviews

Contributors & Developers

“Cache Enabler – WordPress Cache” is open source software. The following people have contributed to this plugin.


“Cache Enabler – WordPress Cache” has been translated into 5 locales. Thank you to the translators for their contributions.

Translate “Cache Enabler – WordPress Cache” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • WP-CLI cache clearing (Thanks to Steve Grunwell)
  • Added cache_enabler_disk_webp_converted_data filter
  • Improved WebP URL conversion
  • Fixed advanced cache issue


  • Reverted change to page specific as new default


  • Replaced wp_die in advanced cache


  • Changed to page specific as new default
  • Added regex setting for analytics tags in get variables
  • Fixed 304 responses


  • Fix for missing trailing slashes was incomplete
  • Add filter option before minification


  • Clear cache on WooCommerce stock updates


  • Fix expiry time
  • Allow to customize bypass cookies
  • Fix Autoptimize config warning
  • Pages can now be excluded from cache by a path matching regex
  • Plugin upgrades can now trigger cache clear
  • Scheduled posts and drafts are now properly handled
  • A missing trailing slash will now redirect like WordPress does by default


  • Fixed settings form issue


  • Minor fixes


  • Added advanced cache feature
  • Clear cache if reply to a comment in WP admin


  • Added the possibility to clear the cache of a specific URL
  • Supports now Windows filesystems
  • Added X-Cache-Handler to indicate if loaded through PHP
  • Support of WebP images generated by ewww
  • Dynamic upload directory for WebP images
  • Fixed multisite purge issue
  • Added requirements checks
  • Made plugin ready for translation


  • Option to disable pre-compression of cached pages if decoding fails


  • Added support for srcset in WP 4.4
  • Improved encoding (utf8)


  • Added cache behavior option for new posts
  • Improved metainformation of the signature
  • Optimized cache handling for nginx


  • Fixed query string related caching issue


  • Credits update


  • Changed WebP static file naming


  • Fixed WebP version switch issue


  • Added support for WebP and CDN Enabler plugin


  • Added WebP support and expiry directive


  • Initial Release