A plugin for Phile to compress the html output and reduce server load.
php composer.phar require softr/phile-page-compressor:*
- Install the latest version of Phile
- Clone this repo into
plugins/softr/pageCompressor
After you have installed the plugin. You need to add the following line to your config.php
file:
$config['plugins']['softr\\pageCompressor'] = array('active' => true);
By default the plugin is set to use the maximum level of compress. Anyway you can reduce or disable the compress level. To do so you need to add the following line to your config.php
file:
$config['page_compress_level'] = 0,1,2,3 or 4;
The different compress level perform the following tasks:
0 - No Minify
1 - Safe Minify
2 - Extreme Reduce. Minify all
3 - Heavy Reduce. Save pre and code tags
4 - Light Reduce. Minify and keep comments