WP Fastest Cache - Version 0.9.1.4

Version Description

  • to fix saving "Update Post" settings issue
  • to fix saving "New Post" settings issue
  • [FEATURE] Compatible with AMP Takeover feature of AMP for WP Accelerated Mobile Pages
Download this release

Release Info

Developer emrevona
Plugin Icon 128x128 WP Fastest Cache
Version 0.9.1.4
Comparing to
See all releases

Code changes from version 0.9.1.3 to 0.9.1.4

inc/cache.php CHANGED
@@ -928,7 +928,7 @@
928
  return false;
929
  }
930
 
931
- if(preg_match('/<html[^\>]*>/si', $buffer) && preg_match('/<body[^\>]*>/si', $buffer)){
932
  return false;
933
  }
934
  // if(strlen($buffer) > 10){
@@ -1081,9 +1081,27 @@
1081
  }
1082
 
1083
  public function is_amp($content){
 
 
1084
  $request_uri = trim($_SERVER["REQUEST_URI"], "/");
1085
 
1086
- if(preg_match("/^amp/", $request_uri) || preg_match("/\/amp\//", $request_uri) || preg_match("/amp$/", $request_uri)){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1087
  if(preg_match("/<html[^\>]+amp[^\>]*>/i", $content)){
1088
  return true;
1089
  }
928
  return false;
929
  }
930
 
931
+ if(preg_match('/<html[^\>]*>/si', $buffer) && preg_match('/<body[^\>]*>/si', $buffer) && preg_match('/<\/body>/si', $buffer)){
932
  return false;
933
  }
934
  // if(strlen($buffer) > 10){
1081
  }
1082
 
1083
  public function is_amp($content){
1084
+ global $redux_builder_amp;
1085
+ $action = false;
1086
  $request_uri = trim($_SERVER["REQUEST_URI"], "/");
1087
 
1088
+ if(preg_match("/^amp/", $request_uri)){
1089
+ $action = true;
1090
+ }
1091
+
1092
+ if(preg_match("/amp$/", $request_uri)){
1093
+ $action = true;
1094
+ }
1095
+
1096
+ if(preg_match("/\/amp\//", $request_uri)){
1097
+ $action = true;
1098
+ }
1099
+
1100
+ if(isset($redux_builder_amp) && isset($redux_builder_amp['ampforwp-amp-takeover']) && ($redux_builder_amp['ampforwp-amp-takeover'] == true)){
1101
+ $action = true;
1102
+ }
1103
+
1104
+ if($action){
1105
  if(preg_match("/<html[^\>]+amp[^\>]*>/i", $content)){
1106
  return true;
1107
  }
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.5
7
- Stable tag: 0.9.1.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -125,6 +125,11 @@ The free version is enough to speed up your site but in the premium version ther
125
 
126
  == Changelog ==
127
 
 
 
 
 
 
128
  = 0.9.1.3 =
129
  * to fix PHP Notice: Undefined offset: -1 js-utilities.php on line 84
130
  * to show the details of the error on the Cloudflare cdn integraiton
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.6
7
+ Stable tag: 0.9.1.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
125
 
126
  == Changelog ==
127
 
128
+ = 0.9.1.4 =
129
+ * to fix saving "Update Post" settings issue
130
+ * to fix saving "New Post" settings issue
131
+ * <strong>[FEATURE]</strong> Compatible with AMP Takeover feature of <a target="_blank" href="https://wordpress.org/plugins/accelerated-mobile-pages/">AMP for WP – Accelerated Mobile Pages</a>
132
+
133
  = 0.9.1.3 =
134
  * to fix PHP Notice: Undefined offset: -1 js-utilities.php on line 84
135
  * to show the details of the error on the Cloudflare cdn integraiton
templates/newpost.php CHANGED
@@ -77,7 +77,7 @@
77
  if(jQuery("div[id^='wpfc-modal-newpost-']").length === 0){
78
  Wpfc_New_Dialog.dialog("wpfc-modal-newpost", {close: function(){
79
  Wpfc_New_Dialog.clone.find("div.window-content input").each(function(){
80
- if(jQuery(this).attr("checked")){
81
  var id = jQuery(this).attr("action-id");
82
  jQuery("div.tab1 div[template-id='wpfc-modal-newpost'] div.window-content input#" + id).attr("checked", true);
83
  }
77
  if(jQuery("div[id^='wpfc-modal-newpost-']").length === 0){
78
  Wpfc_New_Dialog.dialog("wpfc-modal-newpost", {close: function(){
79
  Wpfc_New_Dialog.clone.find("div.window-content input").each(function(){
80
+ if(jQuery(this).is(':checked')){
81
  var id = jQuery(this).attr("action-id");
82
  jQuery("div.tab1 div[template-id='wpfc-modal-newpost'] div.window-content input#" + id).attr("checked", true);
83
  }
templates/updatepost.php CHANGED
@@ -73,7 +73,7 @@
73
  if(jQuery("div[id^='wpfc-modal-updatepost-']").length === 0){
74
  Wpfc_New_Dialog.dialog("wpfc-modal-updatepost", {close: function(){
75
  Wpfc_New_Dialog.clone.find("div.window-content input").each(function(){
76
- if(jQuery(this).attr("checked")){
77
  var id = jQuery(this).attr("action-id");
78
  jQuery("div.tab1 div[template-id='wpfc-modal-updatepost'] div.window-content input#" + id).attr("checked", true);
79
  }
73
  if(jQuery("div[id^='wpfc-modal-updatepost-']").length === 0){
74
  Wpfc_New_Dialog.dialog("wpfc-modal-updatepost", {close: function(){
75
  Wpfc_New_Dialog.clone.find("div.window-content input").each(function(){
76
+ if(jQuery(this).is(':checked')){
77
  var id = jQuery(this).attr("action-id");
78
  jQuery("div.tab1 div[template-id='wpfc-modal-updatepost'] div.window-content input#" + id).attr("checked", true);
79
  }
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.1.3
7
  Author: Emre Vona
8
  Author URI: http://tr.linkedin.com/in/emrevona
9
  Text Domain: wp-fastest-cache
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.4
7
  Author: Emre Vona
8
  Author URI: http://tr.linkedin.com/in/emrevona
9
  Text Domain: wp-fastest-cache