WP Fastest Cache - Version 0.8.7.5

Version Description

  • [FEATURE] Compatible with Easy HTTPS (SSL) Redirection
  • to clear of the post when WPML is active
Download this release

Release Info

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

Code changes from version 0.8.7.4 to 0.8.7.5

css/style.css CHANGED
@@ -552,7 +552,7 @@ span.deleteicon span.cleared {
552
  .success-wpfc{
553
  border-color: #4F8A10 !important;
554
  color: #4F8A10 !important;
555
- background: #DFF2BF url("../images/success.png") no-repeat 10px !important;
556
  }
557
  .success-wpfc p, .error-wpfc p{
558
  padding: 2px 2px 2px 0px !important;
552
  .success-wpfc{
553
  border-color: #4F8A10 !important;
554
  color: #4F8A10 !important;
555
+ background: #DFF2BF url("") no-repeat 10px !important;
556
  }
557
  .success-wpfc p, .error-wpfc p{
558
  padding: 2px 2px 2px 0px !important;
images/inmotion-ads.png CHANGED
Binary file
inc/admin.php CHANGED
@@ -1604,7 +1604,7 @@
1604
  <h1 style="float:left;" id="just-h1">Just</h1><h1><span style="margin-left:5px;" id="wpfc-premium-price"><?php echo $premium_price; ?></span></h1>
1605
  <p>The download button will be available after paid. You can buy the premium version now.</p>
1606
 
1607
- <?php if(!preg_match("/Caiu\s*Na/i", get_bloginfo("name")) && !preg_match("/(caiuna|escort|porn)/i", $_SERVER["HTTP_HOST"]) && !preg_match("/\.ir$/i", $_SERVER["HTTP_HOST"])){ ?>
1608
  <?php if(class_exists("WpFastestCachePowerfulHtml")){ ?>
1609
  <button id="wpfc-buy-premium-button" type="submit" class="wpfc-btn primaryDisableCta" style="width:200px;">
1610
  <span>Purchased</span>
@@ -2037,11 +2037,14 @@
2037
  </div>
2038
 
2039
  <div class="omni_admin_sidebar">
 
 
2040
  <div class="omni_admin_sidebar_section" style="padding:0 !important;border:none !important;background:none !important;">
2041
  <a href="//inmotion-hosting.evyy.net/c/149801/353727/4222" target="_blank">
2042
  <img style="width: 273px; margin-left: -27px;" src="<?php echo plugins_url("wp-fastest-cache/images/inmotion-ads.png"); ?>">
2043
  </a>
2044
  </div>
 
2045
  <div class="omni_admin_sidebar_section" id="vote-us">
2046
  <h3 style="color: antiquewhite;">Rate Us</h3>
2047
  <ul>
1604
  <h1 style="float:left;" id="just-h1">Just</h1><h1><span style="margin-left:5px;" id="wpfc-premium-price"><?php echo $premium_price; ?></span></h1>
1605
  <p>The download button will be available after paid. You can buy the premium version now.</p>
1606
 
1607
+ <?php if(!preg_match("/Caiu\s*Na/i", get_bloginfo("name")) && !preg_match("/(caiuna|escort|porn)/i", $_SERVER["HTTP_HOST"])){ ?>
1608
  <?php if(class_exists("WpFastestCachePowerfulHtml")){ ?>
1609
  <button id="wpfc-buy-premium-button" type="submit" class="wpfc-btn primaryDisableCta" style="width:200px;">
1610
  <span>Purchased</span>
2037
  </div>
2038
 
2039
  <div class="omni_admin_sidebar">
2040
+ <?php if(class_exists("WpFastestCachePowerfulHtml")){ ?>
2041
+ <?php }else{ ?>
2042
  <div class="omni_admin_sidebar_section" style="padding:0 !important;border:none !important;background:none !important;">
2043
  <a href="//inmotion-hosting.evyy.net/c/149801/353727/4222" target="_blank">
2044
  <img style="width: 273px; margin-left: -27px;" src="<?php echo plugins_url("wp-fastest-cache/images/inmotion-ads.png"); ?>">
2045
  </a>
2046
  </div>
2047
+ <?php } ?>
2048
  <div class="omni_admin_sidebar_section" id="vote-us">
2049
  <h3 style="color: antiquewhite;">Rate Us</h3>
2050
  <ul>
inc/cache.php CHANGED
@@ -252,7 +252,9 @@
252
  if(!$this->isPluginActive('really-simple-ssl/rlrsssl-really-simple-ssl.php')){
253
  if(!$this->isPluginActive('really-simple-ssl-pro/really-simple-ssl-pro.php')){
254
  if(!$this->isPluginActive('ssl-insecure-content-fixer/ssl-insecure-content-fixer.php')){
255
- return 0;
 
 
256
  }
257
  }
258
  }
252
  if(!$this->isPluginActive('really-simple-ssl/rlrsssl-really-simple-ssl.php')){
253
  if(!$this->isPluginActive('really-simple-ssl-pro/really-simple-ssl-pro.php')){
254
  if(!$this->isPluginActive('ssl-insecure-content-fixer/ssl-insecure-content-fixer.php')){
255
+ if(!$this->isPluginActive('https-redirection/https-redirection.php')){
256
+ return 0;
257
+ }
258
  }
259
  }
260
  }
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: emrevona
3
  Donate link: http://profiles.wordpress.org/emrevona/
4
  Tags: cache, performance, wp-cache, total cache, super cache
5
  Requires at least: 3.3
6
- Tested up to: 4.8
7
- Stable tag: 0.8.7.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -101,6 +101,10 @@ Wpfc does not support Wordpress Multisite yet.
101
 
102
  == Changelog ==
103
 
 
 
 
 
104
  = 0.8.7.4 =
105
  * to exclude the renamed my-account page of woocommerce
106
  * to add AddType x-font/ttf for gzip
3
  Donate link: http://profiles.wordpress.org/emrevona/
4
  Tags: cache, performance, wp-cache, total cache, super cache
5
  Requires at least: 3.3
6
+ Tested up to: 4.9
7
+ Stable tag: 0.8.7.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
101
 
102
  == Changelog ==
103
 
104
+ = 0.8.7.5 =
105
+ * <strong>[FEATURE]</strong> Compatible with Easy HTTPS (SSL) Redirection
106
+ * to clear of the post when WPML is active
107
+
108
  = 0.8.7.4 =
109
  * to exclude the renamed my-account page of woocommerce
110
  * to add AddType x-font/ttf for gzip
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.8.7.4
7
  Author: Emre Vona
8
  Author URI: http://tr.linkedin.com/in/emrevona
9
  Text Domain: wp-fastest-cache
@@ -411,6 +411,10 @@ GNU General Public License for more details.
411
  if(($response_code == 401) && (preg_match("/res\.cloudinary\.com/i", $_GET["url"]))){
412
  $res = array("success" => true);
413
  }
 
 
 
 
414
  }
415
  }
416
 
@@ -934,6 +938,8 @@ GNU General Public License for more details.
934
  $to_clear_parents = true;
935
 
936
  if($comment_id){
 
 
937
  $comment = get_comment($comment_id);
938
 
939
  if($comment && $comment->comment_post_ID){
@@ -942,6 +948,8 @@ GNU General Public License for more details.
942
  }
943
 
944
  if($post_id){
 
 
945
  $permalink = get_permalink($post_id);
946
 
947
  $permalink = urldecode(get_permalink($post_id));
@@ -951,8 +959,18 @@ GNU General Public License for more details.
951
  $permalink = preg_replace("/__trashed$/", "", $permalink);
952
 
953
  if(preg_match("/https?:\/\/[^\/]+\/(.+)/", $permalink, $out)){
954
- $path = $this->getWpContentDir()."/cache/all/".$out[1];
955
- $mobile_path = $this->getWpContentDir()."/cache/wpfc-mobile-cache/".$out[1];
 
 
 
 
 
 
 
 
 
 
956
 
957
  if(is_dir($path)){
958
  if($this->isPluginActive("wp-fastest-cache-premium/wpFastestCachePremium.php")){
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.8.7.5
7
  Author: Emre Vona
8
  Author URI: http://tr.linkedin.com/in/emrevona
9
  Text Domain: wp-fastest-cache
411
  if(($response_code == 401) && (preg_match("/res\.cloudinary\.com/i", $_GET["url"]))){
412
  $res = array("success" => true);
413
  }
414
+
415
+ if(($response_code == 403) && (preg_match("/stackpathdns\.com/i", $_GET["url"]))){
416
+ $res = array("success" => true);
417
+ }
418
  }
419
  }
420
 
938
  $to_clear_parents = true;
939
 
940
  if($comment_id){
941
+ $comment_id = intval($comment_id);
942
+
943
  $comment = get_comment($comment_id);
944
 
945
  if($comment && $comment->comment_post_ID){
948
  }
949
 
950
  if($post_id){
951
+ $post_id = intval($post_id);
952
+
953
  $permalink = get_permalink($post_id);
954
 
955
  $permalink = urldecode(get_permalink($post_id));
959
  $permalink = preg_replace("/__trashed$/", "", $permalink);
960
 
961
  if(preg_match("/https?:\/\/[^\/]+\/(.+)/", $permalink, $out)){
962
+
963
+ //WPML language switch
964
+ //https://wpml.org/forums/topic/wpml-language-switch-wp-fastest-cache-issue/
965
+ if($this->isPluginActive('sitepress-multilingual-cms/sitepress.php')){
966
+ $current_language = apply_filters('wpml_current_language', false);
967
+
968
+ $path = $this->getWpContentDir()."/cache/all/".$current_language."/".$out[1];
969
+ $mobile_path = $this->getWpContentDir()."/cache/wpfc-mobile-cache/".$current_language."/".$out[1];
970
+ }else{
971
+ $path = $this->getWpContentDir()."/cache/all/".$out[1];
972
+ $mobile_path = $this->getWpContentDir()."/cache/wpfc-mobile-cache/".$out[1];
973
+ }
974
 
975
  if(is_dir($path)){
976
  if($this->isPluginActive("wp-fastest-cache-premium/wpFastestCachePremium.php")){