WPSCMin/ 0000755 0000765 0000765 00000000000 11157413040 011570 5 ustar jhardi jhardi WPSCMin/wp-super-cache.diff 0000644 0000765 0000765 00000004415 11157412452 015257 0 ustar jhardi jhardi diff -ur tmp/wp-super-cache/wp-cache-phase2.php wp-super-cache/wp-cache-phase2.php --- tmp/wp-super-cache/wp-cache-phase2.php 2009-02-26 13:07:08.000000000 -0800 +++ wp-super-cache/wp-cache-phase2.php 2009-03-16 01:55:13.000000000 -0700 @@ -275,12 +275,20 @@ $buffer = preg_replace('||is', '', $buffer); if( $fr ) fputs($fr, $store); + + // WP Super Cache static files are minified if option is enabled + WPSCMin::getInstance()->minify($store); + if( $fr2 ) fputs($fr2, $store . '' ); if( $gz ) fputs($gz, gzencode( $store . '', 1, FORCE_GZIP ) ); } else { $buffer = apply_filters( 'wpsupercache_buffer', $buffer ); + + // WP Super Cache static files AND wp-cache data are minified if option is enabled + WPSCMin::getInstance()->minify($buffer); + $log = "\n"; if( $gz || $wp_cache_gzip_encoding ) { diff -ur tmp/wp-super-cache/wp-cache.php wp-super-cache/wp-cache.php --- tmp/wp-super-cache/wp-cache.php 2009-02-26 13:07:08.000000000 -0800 +++ wp-super-cache/wp-cache.php 2009-03-16 01:51:06.000000000 -0700 @@ -48,6 +48,8 @@ include(WPCACHEHOME . 'wp-cache-base.php'); +// HTML Minify interface +include(WPCACHEHOME . 'WPSCMin.php'); // from legolas558 d0t users dot sf dot net at http://www.php.net/is_writable function is_writeable_ACLSafe($path) { @@ -307,6 +309,10 @@ $wp_cache_hide_donation = intval( $_POST[ 'wp_cache_hide_donation' ] ); wp_cache_replace_line('^ *\$wp_cache_hide_donation', "\$wp_cache_hide_donation = " . $wp_cache_hide_donation . ";", $wp_cache_config_file); } + + // HTML Minify update option + if (class_exists('WPSCMin') and isset($_POST[WPSCMin::$config_varname])) + WPSCMin::getInstance()->updateOption($_POST[WPSCMin::$config_varname], $wp_cache_config_file); } ?> @@ -431,6 +437,12 @@ echo "\n"; ?> + printOptionsForm($_SERVER['REQUEST_URI']); + ?> +