code sample

Merge + Minify + Refresh Force Clear Caches

This plugin clears other page caches/proxies when the Merge + Minify + Refresh cache is regenerated so users don’t end up missing static resources (CSS/JS files) due to a cached page trying to load old static resources.

Get the code at the GitHub repository.

Note that every time the Merge + Minify + Refresh cache is purged, your page cache and proxies will be purged as well, forcing them to regenerate the cache.

Installation

  1. Upload the plugin to the /wp-content/plugins/ directory
  2. Activate the plugin through the “Plugins” menu in WordPress
  3. Enjoy!
  4. Optional: you can force-clear all caches under “Settings > MMR Force Clear Caches”

Frequently Asked Questions

Can I clear only specific pages from the cache?

Unfortunately not, since at this point, there’s no way to know which pages will be affected by the minified files.

Changelog

1.1.1

  • Fix wordpress.org autodeployment

1.1.0

  • Add support for RunCloud Hub object cache

1.0.0

  • First version

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.