Version Description
- Added support for WebP and CDN Enabler plugin
Download this release
Release Info
Developer | keycdn |
Plugin | Cache Enabler – WordPress Cache |
Version | 1.0.2 |
Comparing to | |
See all releases |
Code changes from version 1.0.1 to 1.0.2
- cache-enabler.php +1 -1
- inc/cache_enabler_disk.class.php +2 -3
- readme.txt +4 -1
cache-enabler.php
CHANGED
@@ -6,7 +6,7 @@ Description: Simple and fast WordPress disk caching plugin.
|
|
6 |
Author: KeyCDN
|
7 |
Author URI: https://www.keycdn.com
|
8 |
License: GPLv2 or later
|
9 |
-
Version: 1.0.
|
10 |
*/
|
11 |
|
12 |
/*
|
6 |
Author: KeyCDN
|
7 |
Author URI: https://www.keycdn.com
|
8 |
License: GPLv2 or later
|
9 |
+
Version: 1.0.2
|
10 |
*/
|
11 |
|
12 |
/*
|
inc/cache_enabler_disk.class.php
CHANGED
@@ -162,8 +162,6 @@ final class Cache_Enabler_Disk {
|
|
162 |
exit;
|
163 |
}
|
164 |
|
165 |
-
//var_dump($http_accept);
|
166 |
-
|
167 |
// check webp support
|
168 |
if ( $http_accept && ( strpos($http_accept, 'webp') !== false ) ) {
|
169 |
header('Content-Encoding: gzip');
|
@@ -488,7 +486,8 @@ final class Cache_Enabler_Disk {
|
|
488 |
$src_webp = str_replace('.jpg', '.webp', $src);
|
489 |
$src_webp = str_replace('.png', '.webp', $src_webp);
|
490 |
|
491 |
-
$
|
|
|
492 |
|
493 |
$upload_path = wp_upload_dir();
|
494 |
$base_dir = $upload_path['basedir'];
|
162 |
exit;
|
163 |
}
|
164 |
|
|
|
|
|
165 |
// check webp support
|
166 |
if ( $http_accept && ( strpos($http_accept, 'webp') !== false ) ) {
|
167 |
header('Content-Encoding: gzip');
|
486 |
$src_webp = str_replace('.jpg', '.webp', $src);
|
487 |
$src_webp = str_replace('.png', '.webp', $src_webp);
|
488 |
|
489 |
+
$parts = explode('/wp-content/uploads', $src_webp);
|
490 |
+
$relative_path = $parts[1];
|
491 |
|
492 |
$upload_path = wp_upload_dir();
|
493 |
$base_dir = $upload_path['basedir'];
|
readme.txt
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
=== Cache Enabler - WordPress Caching ===
|
2 |
Contributors: keycdn
|
3 |
Tags: cache, caching, performance
|
4 |
-
Requires at least:
|
5 |
Tested up to: 4.3
|
6 |
Stable tag: trunk
|
7 |
License: GPLv2 or later
|
@@ -51,6 +51,9 @@ Just [contact us](https://www.keycdn.com/contacts "Support Request") directly to
|
|
51 |
|
52 |
== Changelog ==
|
53 |
|
|
|
|
|
|
|
54 |
= 1.0.1 =
|
55 |
* Added WebP support and expiry directive
|
56 |
|
1 |
=== Cache Enabler - WordPress Caching ===
|
2 |
Contributors: keycdn
|
3 |
Tags: cache, caching, performance
|
4 |
+
Requires at least: 4.1
|
5 |
Tested up to: 4.3
|
6 |
Stable tag: trunk
|
7 |
License: GPLv2 or later
|
51 |
|
52 |
== Changelog ==
|
53 |
|
54 |
+
= 1.0.2 =
|
55 |
+
* Added support for WebP and CDN Enabler plugin
|
56 |
+
|
57 |
= 1.0.1 =
|
58 |
* Added WebP support and expiry directive
|
59 |
|