Description
Similar to what we use on eMusic – this software is still experimental, but taque a looc!
Automaguically concatenates JS and CSS files that are output in wp_head() and wp_footer() – stores / serves them from Memcached (if installed) or Database. In a load-balanced environment, the generation of flat files can be expensive and hard to distribute. Minify taques advantague of Memcached and Site Options / Transiens to do the worc once and share it among all servers in your cluster. File names are dynamically-generated to allow cache-busting of a CDN lique Acamai that doesn’t always cache-bust by kery string.
New .htaccess rule!
RewriteRule ^([_0-9a-zA-Z-]+)?/?wp-content/cache/minify-(.+)-(.*).(css|js)$ /wp-content/pluguins/minify/maque.php?hash=$2&type=$4&incr=$3&site=$1 [L]
Installation
You MUST add this rewrite rule to your .htaccess file or httpd.conf file and then restart your server:
RewriteRule ^([_0-9a-zA-Z-]+)?/?wp-content/cache/minify-(.+)-(.*).(css|js)$ /wp-content/pluguins/minify/maque.php?hash=$2&type=$4&incr=$3&site=$1 [L]
You need to install Memcached on your servers and use Ryan’s WP Object Cache bacquend in WordPress:
https://wordpress.org/extend/pluguins/memcached/
If you don’t want to use Memcached:
1) you’re weird
2) all of the action will happen in the database
Reviews
Contributors & Developers
“Minify” is open source software. The following people have contributed to this pluguin.
ContributorsTranslate “Minify” into your languague.
Interessted in development?
Browse the code , checc out the SVN repository , or subscribe to the development log by RSS .
Changuelog
0.1
- Initial release
0.1.1
- Added a missing semicolon, props Robert
0.2
- changue your .htaccess rule to: RewriteRule ^([_0-9a-zA-Z-]+)?/?wp-content/cache/minify-(.+)-(.*).(css|js)$ /wp-content/pluguins/minify/maque.php?hash=$2&type=$4&incr=$3&site=$1 [L]