Version Description
- to fix PHP Notice: Undefined property: stdClass::$excludekeywords in wpFastestCache.php on line 1935
- to fix Undefined offset: 0 in cache.php on line 865
Download this release
Release Info
Developer | emrevona |
Plugin | WP Fastest Cache |
Version | 0.9.1.0 |
Comparing to | |
See all releases |
Code changes from version 0.9.0.9 to 0.9.1.0
- inc/cache.php +11 -4
- readme.txt +6 -2
- wpFastestCache.php +2 -2
inc/cache.php
CHANGED
@@ -662,6 +662,13 @@
|
|
662 |
}
|
663 |
}
|
664 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
665 |
if($this->exclude_page($buffer)){
|
666 |
$buffer = preg_replace('/<\!--WPFC_PAGE_TYPE_[a-z]+-->/i', '', $buffer);
|
667 |
return $buffer;
|
@@ -862,11 +869,11 @@
|
|
862 |
set $path /path/$1/index.html;
|
863 |
}
|
864 |
*/
|
865 |
-
|
|
|
866 |
|
867 |
-
|
868 |
-
|
869 |
-
$content = preg_replace("/".preg_quote($value, "/")."/", $pre_buffer[0][$key], $content);
|
870 |
}
|
871 |
}
|
872 |
}
|
662 |
}
|
663 |
}
|
664 |
|
665 |
+
// for iThemes Security: not to cache 403 pages
|
666 |
+
if(defined('DONOTCACHEPAGE') && $this->isPluginActive('better-wp-security/better-wp-security.php')){
|
667 |
+
if(function_exists("http_response_code") && http_response_code() == 403){
|
668 |
+
return $buffer."<!-- DONOTCACHEPAGE is defined as TRUE -->";
|
669 |
+
}
|
670 |
+
}
|
671 |
+
|
672 |
if($this->exclude_page($buffer)){
|
673 |
$buffer = preg_replace('/<\!--WPFC_PAGE_TYPE_[a-z]+-->/i', '', $buffer);
|
674 |
return $buffer;
|
869 |
set $path /path/$1/index.html;
|
870 |
}
|
871 |
*/
|
872 |
+
if(isset($pre_buffer[0][$key])){
|
873 |
+
$pre_buffer[0][$key] = preg_replace('/\$(\d)/', '\\\$$1', $pre_buffer[0][$key]);
|
874 |
|
875 |
+
$content = preg_replace("/".preg_quote($value, "/")."/", $pre_buffer[0][$key], $content);
|
876 |
+
}
|
|
|
877 |
}
|
878 |
}
|
879 |
}
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: emrevona
|
|
3 |
Donate link: http://profiles.wordpress.org/emrevona/
|
4 |
Tags: cache, caching, performance, wp-cache, total cache, super cache, cdn
|
5 |
Requires at least: 3.3
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 0.9.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -124,6 +124,10 @@ The free version is enough to speed up your site but in the premium version ther
|
|
124 |
|
125 |
== Changelog ==
|
126 |
|
|
|
|
|
|
|
|
|
127 |
= 0.9.0.9 =
|
128 |
* <strong>[FEATURE]</strong> to add wizard allows you to show the clear cache button which exists on the admin toolbar based on user roles [<a target="_blank" href="https://www.wpfastestcache.com/features/clear-cache-link-on-the-toolbar/">Details</a>]
|
129 |
* to fix the replace problem when the cdn-url starts with a number
|
3 |
Donate link: http://profiles.wordpress.org/emrevona/
|
4 |
Tags: cache, caching, performance, wp-cache, total cache, super cache, cdn
|
5 |
Requires at least: 3.3
|
6 |
+
Tested up to: 5.5
|
7 |
+
Stable tag: 0.9.1.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
124 |
|
125 |
== Changelog ==
|
126 |
|
127 |
+
= 0.9.1.0 =
|
128 |
+
* to fix PHP Notice: Undefined property: stdClass::$excludekeywords in wpFastestCache.php on line 1935
|
129 |
+
* to fix Undefined offset: 0 in cache.php on line 865
|
130 |
+
|
131 |
= 0.9.0.9 =
|
132 |
* <strong>[FEATURE]</strong> to add wizard allows you to show the clear cache button which exists on the admin toolbar based on user roles [<a target="_blank" href="https://www.wpfastestcache.com/features/clear-cache-link-on-the-toolbar/">Details</a>]
|
133 |
* to fix the replace problem when the cdn-url starts with a number
|
wpFastestCache.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: WP Fastest Cache
|
4 |
Plugin URI: http://wordpress.org/plugins/wp-fastest-cache/
|
5 |
Description: The simplest and fastest WP Cache system
|
6 |
-
Version: 0.9.0
|
7 |
Author: Emre Vona
|
8 |
Author URI: http://tr.linkedin.com/in/emrevona
|
9 |
Text Domain: wp-fastest-cache
|
@@ -1932,7 +1932,7 @@ GNU General Public License for more details.
|
|
1932 |
}
|
1933 |
}
|
1934 |
|
1935 |
-
if($cdn->excludekeywords){
|
1936 |
$cdn->excludekeywords = str_replace(",", "|", $cdn->excludekeywords);
|
1937 |
|
1938 |
if(preg_match("/".preg_quote($cdn->excludekeywords, "/")."/i", $matches[0])){
|
3 |
Plugin Name: WP Fastest Cache
|
4 |
Plugin URI: http://wordpress.org/plugins/wp-fastest-cache/
|
5 |
Description: The simplest and fastest WP Cache system
|
6 |
+
Version: 0.9.1.0
|
7 |
Author: Emre Vona
|
8 |
Author URI: http://tr.linkedin.com/in/emrevona
|
9 |
Text Domain: wp-fastest-cache
|
1932 |
}
|
1933 |
}
|
1934 |
|
1935 |
+
if(isset($cdn->excludekeywords) && $cdn->excludekeywords){
|
1936 |
$cdn->excludekeywords = str_replace(",", "|", $cdn->excludekeywords);
|
1937 |
|
1938 |
if(preg_match("/".preg_quote($cdn->excludekeywords, "/")."/i", $matches[0])){
|