Version Description
- Fix removing CSS and JavaScript comments during HTML minification (#188)
Download this release
Release Info
Developer | keycdn |
Plugin | Cache Enabler – WordPress Cache |
Version | 1.6.2 |
Comparing to | |
See all releases |
Code changes from version 1.6.1 to 1.6.2
- cache-enabler.php +2 -2
- inc/cache_enabler_disk.class.php +2 -2
- readme.txt +5 -2
cache-enabler.php
CHANGED
@@ -6,7 +6,7 @@ Description: Simple and fast WordPress caching plugin.
|
|
6 |
Author: KeyCDN
|
7 |
Author URI: https://www.keycdn.com
|
8 |
License: GPLv2 or later
|
9 |
-
Version: 1.6.
|
10 |
*/
|
11 |
|
12 |
/*
|
@@ -32,7 +32,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
32 |
}
|
33 |
|
34 |
// constants
|
35 |
-
define( 'CE_VERSION', '1.6.
|
36 |
define( 'CE_MIN_PHP', '5.6' );
|
37 |
define( 'CE_MIN_WP', '5.1' );
|
38 |
define( 'CE_FILE', __FILE__ );
|
6 |
Author: KeyCDN
|
7 |
Author URI: https://www.keycdn.com
|
8 |
License: GPLv2 or later
|
9 |
+
Version: 1.6.2
|
10 |
*/
|
11 |
|
12 |
/*
|
32 |
}
|
33 |
|
34 |
// constants
|
35 |
+
define( 'CE_VERSION', '1.6.2' );
|
36 |
define( 'CE_MIN_PHP', '5.6' );
|
37 |
define( 'CE_MIN_WP', '5.1' );
|
38 |
define( 'CE_FILE', __FILE__ );
|
inc/cache_enabler_disk.class.php
CHANGED
@@ -1027,7 +1027,7 @@ final class Cache_Enabler_Disk {
|
|
1027 |
* minify HTML
|
1028 |
*
|
1029 |
* @since 1.0.0
|
1030 |
-
* @change 1.6.
|
1031 |
*
|
1032 |
* @param string $page_contents contents of a page from the output buffer
|
1033 |
* @return string $minified_html|$page_contents minified page contents if applicable, unchanged otherwise
|
@@ -1070,7 +1070,7 @@ final class Cache_Enabler_Disk {
|
|
1070 |
// if setting selected remove CSS and JavaScript comments
|
1071 |
if ( Cache_Enabler_Engine::$settings['minify_inline_css_js'] ) {
|
1072 |
$minified_html = preg_replace(
|
1073 |
-
'
|
1074 |
'$1',
|
1075 |
$minified_html
|
1076 |
);
|
1027 |
* minify HTML
|
1028 |
*
|
1029 |
* @since 1.0.0
|
1030 |
+
* @change 1.6.2
|
1031 |
*
|
1032 |
* @param string $page_contents contents of a page from the output buffer
|
1033 |
* @return string $minified_html|$page_contents minified page contents if applicable, unchanged otherwise
|
1070 |
// if setting selected remove CSS and JavaScript comments
|
1071 |
if ( Cache_Enabler_Engine::$settings['minify_inline_css_js'] ) {
|
1072 |
$minified_html = preg_replace(
|
1073 |
+
'#/\*[\s\S]*?\*/|([^\'\"\\:\w]|^)//.*$#m',
|
1074 |
'$1',
|
1075 |
$minified_html
|
1076 |
);
|
readme.txt
CHANGED
@@ -13,7 +13,7 @@ A lightweight caching plugin for WordPress that makes your website faster by gen
|
|
13 |
|
14 |
|
15 |
== Description ==
|
16 |
-
Cache Enabler is a simple, yet powerful WordPress plugin that is easy to use, needs minimal configuration, and best of all helps improve site performance for a faster load time. It creates static HTML files and stores them on the server's disk. This allows the web server to deliver the static HTML files avoiding resource intensive backend processes from the WordPress core, plugins, and database lookups.
|
17 |
|
18 |
|
19 |
= Features =
|
@@ -55,8 +55,11 @@ Cache Enabler captures page contents and saves it as a static HTML file on the s
|
|
55 |
|
56 |
== Changelog ==
|
57 |
|
|
|
|
|
|
|
58 |
= 1.6.1 =
|
59 |
-
* Update
|
60 |
* Update cache clearing behavior for comment actions (#185)
|
61 |
* Update HTML minification to remove CSS and JavaScript comments (#184)
|
62 |
* Update site cache clearing behavior for multisite networks to ensure cache cleared action hooks are fired when using WP-CLI or clear cache action hooks (#180)
|
13 |
|
14 |
|
15 |
== Description ==
|
16 |
+
Cache Enabler is a simple, yet powerful WordPress caching plugin that is easy to use, needs minimal configuration, and best of all helps improve site performance for a faster load time. It creates static HTML files and stores them on the server's disk. This allows the web server to deliver the static HTML files avoiding resource intensive backend processes from the WordPress core, plugins, and database lookups.
|
17 |
|
18 |
|
19 |
= Features =
|
55 |
|
56 |
== Changelog ==
|
57 |
|
58 |
+
= 1.6.2 =
|
59 |
+
* Fix removing CSS and JavaScript comments during HTML minification (#188)
|
60 |
+
|
61 |
= 1.6.1 =
|
62 |
+
* Update requirements check (#186)
|
63 |
* Update cache clearing behavior for comment actions (#185)
|
64 |
* Update HTML minification to remove CSS and JavaScript comments (#184)
|
65 |
* Update site cache clearing behavior for multisite networks to ensure cache cleared action hooks are fired when using WP-CLI or clear cache action hooks (#180)
|