WP Fastest Cache - Version 0.9.0.8

Version Description

  • to exclude PDF files from caching
  • to add Modified Time into htaccess
  • to add "Clear Cache of All Sites" feature for Clear Cache via URL [Details]
Download this release

Release Info

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

Code changes from version 0.9.0.7 to 0.9.0.8

Files changed (4) hide show
  1. inc/admin.php +4 -11
  2. inc/cache.php +5 -0
  3. readme.txt +6 -1
  4. wpFastestCache.php +9 -3
inc/admin.php CHANGED
@@ -731,6 +731,7 @@
731
  }
732
 
733
  $data = "# BEGIN WpFastestCache"."\n".
 
734
  "<IfModule mod_rewrite.c>"."\n".
735
  "RewriteEngine On"."\n".
736
  "RewriteBase /"."\n".
@@ -1656,17 +1657,9 @@
1656
  </div>
1657
  <div class="wpfc-premium-step-footer">
1658
  <?php
1659
- if(in_array(get_bloginfo('language'), array("en-US"))){
1660
- $premium_price = "$49.99";
1661
- $premium_buy_link = "https://api.wpfastestcache.net/paypal/buypremium/";
1662
- }else{
1663
- $premium_buy_link = "https://www.wpfastestcache.com/#buy";
1664
- $premium_price = "$49.99";
1665
-
1666
- // if(in_array(get_bloginfo('language'), array("tr-TR", "tr"))){
1667
- // $premium_price = "150TL";
1668
- // }
1669
- }
1670
 
1671
  ?>
1672
  <h1 style="float:left;" id="just-h1"><?php _e("Just", "wp-fastest-cache"); ?></h1><h1><span style="margin-left:5px;" id="wpfc-premium-price"><?php echo $premium_price; ?></span></h1>
731
  }
732
 
733
  $data = "# BEGIN WpFastestCache"."\n".
734
+ "# Modified Time: ".date("d-m-y G:i:s", current_time('timestamp'))."\n".
735
  "<IfModule mod_rewrite.c>"."\n".
736
  "RewriteEngine On"."\n".
737
  "RewriteBase /"."\n".
1657
  </div>
1658
  <div class="wpfc-premium-step-footer">
1659
  <?php
1660
+
1661
+ $premium_buy_link = "https://www.wpfastestcache.com/#buy";
1662
+ $premium_price = "$49.99";
 
 
 
 
 
 
 
 
1663
 
1664
  ?>
1665
  <h1 style="float:left;" id="just-h1"><?php _e("Just", "wp-fastest-cache"); ?></h1><h1><span style="margin-left:5px;" id="wpfc-premium-price"><?php echo $premium_price; ?></span></h1>
inc/cache.php CHANGED
@@ -227,6 +227,11 @@
227
  public function createCache(){
228
  if(isset($this->options->wpFastestCacheStatus)){
229
 
 
 
 
 
 
230
  // to check logged-in user
231
  if(isset($this->options->wpFastestCacheLoggedInUser) && $this->options->wpFastestCacheLoggedInUser == "on"){
232
  foreach ((array)$_COOKIE as $cookie_key => $cookie_value){
227
  public function createCache(){
228
  if(isset($this->options->wpFastestCacheStatus)){
229
 
230
+ // to exclude static pdf files
231
+ if(preg_match("/\.pdf$/i", $_SERVER["REQUEST_URI"])){
232
+ return 0;
233
+ }
234
+
235
  // to check logged-in user
236
  if(isset($this->options->wpFastestCacheLoggedInUser) && $this->options->wpFastestCacheLoggedInUser == "on"){
237
  foreach ((array)$_COOKIE as $cookie_key => $cookie_value){
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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.4
7
- Stable tag: 0.9.0.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -124,6 +124,11 @@ The free version is enough to speed up your site but in the premium version ther
124
 
125
  == Changelog ==
126
 
 
 
 
 
 
127
  = 0.9.0.7 =
128
  * <strong>[FEATURE]</strong> to add "exclude sources" feature for CDN
129
  * to remove the DNS prefetch of s.w.org when emoji is disabled
4
  Tags: cache, caching, performance, wp-cache, total cache, super cache, cdn
5
  Requires at least: 3.3
6
  Tested up to: 5.4
7
+ Stable tag: 0.9.0.8
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.0.8 =
128
+ * to exclude PDF files from caching
129
+ * to add Modified Time into htaccess
130
+ * to add "Clear Cache of All Sites" feature for Clear Cache via URL [<a target="_blank" href="https://www.wpfastestcache.com/features/clear-cache-via-url/">Details</a>]
131
+
132
  = 0.9.0.7 =
133
  * <strong>[FEATURE]</strong> to add "exclude sources" feature for CDN
134
  * to remove the DNS prefetch of s.w.org when emoji is disabled
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
7
  Author: Emre Vona
8
  Author URI: http://tr.linkedin.com/in/emrevona
9
  Text Domain: wp-fastest-cache
@@ -193,7 +193,7 @@ GNU General Public License for more details.
193
  add_action('init', array($this, "create_preload_cache"), 11);
194
  }
195
 
196
- if(isset($_GET) && isset($_GET["type"]) && preg_match("/^clearcache(andminified)*$/i", $_GET["type"])){
197
  // /?action=wpfastestcache&type=clearcache&token=123
198
  // /?action=wpfastestcache&type=clearcacheandminified&token=123
199
 
@@ -212,6 +212,10 @@ GNU General Public License for more details.
212
  $this->deleteCache(true);
213
  }
214
 
 
 
 
 
215
  die("Done");
216
  }else{
217
  die("Wrong token");
@@ -749,7 +753,9 @@ GNU General Public License for more details.
749
  @rename($file, $this->getWpContentDir("/cache/tmpWpfc/").basename($file)."-".time());
750
  }
751
 
752
- die(json_encode(array("The cache of page has been cleared","success")));
 
 
753
  }
754
 
755
  public function delete_current_page_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.0.8
7
  Author: Emre Vona
8
  Author URI: http://tr.linkedin.com/in/emrevona
9
  Text Domain: wp-fastest-cache
193
  add_action('init', array($this, "create_preload_cache"), 11);
194
  }
195
 
196
+ if(isset($_GET) && isset($_GET["type"]) && preg_match("/^clearcache(andminified|allsites)*$/i", $_GET["type"])){
197
  // /?action=wpfastestcache&type=clearcache&token=123
198
  // /?action=wpfastestcache&type=clearcacheandminified&token=123
199
 
212
  $this->deleteCache(true);
213
  }
214
 
215
+ if($_GET["type"] == "clearcacheallsites"){
216
+ $this->wpfc_clear_cache_of_allsites_callback();
217
+ }
218
+
219
  die("Done");
220
  }else{
221
  die("Wrong token");
753
  @rename($file, $this->getWpContentDir("/cache/tmpWpfc/").basename($file)."-".time());
754
  }
755
 
756
+ if (is_admin() && defined('DOING_AJAX') && DOING_AJAX){
757
+ die(json_encode(array("The cache of page has been cleared","success")));
758
+ }
759
  }
760
 
761
  public function delete_current_page_cache(){