The WordPress WP-Super-Cache cache plugin doesn’t minify HTML cache files, which I find a disadvantage. Knowing minify libraries, I went looking for an existing solution (why reinvent the wheel?), and found one: WPSCMin. Read on …
Minifying cache files is important in my opinion, because smaller minified files are downloaded faster. And minifying is what WPSCmin does.
JSMinPlus.php file, causing PHP errors. I found the mattheu/MinQueue WordPress Plugin does ship with a minify library containing JSMinPlus.php. It is in the
PHP-Minify-Lib directory, and I chose to try that one in stead.
Tip: Tips to Speed Up WordPress, serve gzip comressed static HTML files generated by WP-Super-Cache & Cache Enabler!
Since WPSCMin relies on mrclay/minify PHP library, you need to make a small code change if you use MinQueue’s PHP-Minify-Lib directory. In the file
wp-content/plugins/wp-super-cache/plugins/WPSCMin.php, replace all occurances of
or simply rename the PHP-Minify-Lib directory.
Joel of WPSCMin replied to my email (thanks!), and pointed me on the mrclay/minify releases: https://github.com/mrclay/minify/releases. The most recent release, which was in October 2014, still ships the required
JSMinPlus.php file. So, when adding WPSCMin as a plugin to WP-Super-Cache, be sure to check out the minify-releases, and not only the raw GitHub head as I did.
My name is Jan. I am not a hacker, coder, developer, programmer or guru. I am merely a system administrator, doing my daily thing at Vevida in the Netherlands. With over 15 years of experience, my specialties include Windows Server, IIS, Linux (CentOS, Debian), security, PHP, WordPress, websites & optimization. Want to support me and donate? Use this link: https://paypal.me/jreilink.
Automatically flush Redis cache after publishing a WordPress post
WordPress .htaccess security best practices in Apache 2.4.6+
Set WP_MEMORY_LIMIT value correctly in wp-config.php
How to: Protect WordPress from brute-force XML-RPC attacks
Remove Jetpack email sharing service
How to make Twenty Seventeen theme full width in WordPress
Check WordPress Core files integrity
Clear PHP opcode caches before WordPress Updates: ease the updating process