Version Description
- refactoring of serving non-exists minified files
- to fix htaccess rule for Polylang plugin
- to fix condition of clear cache after plugin update
Download this release
Release Info
Developer | emrevona |
Plugin | WP Fastest Cache |
Version | 0.9.6 |
Comparing to | |
See all releases |
Code changes from version 0.9.5 to 0.9.6
- inc/admin.php +6 -2
- readme.txt +6 -1
- wpFastestCache.php +13 -9
inc/admin.php
CHANGED
@@ -719,7 +719,10 @@
|
|
719 |
|
720 |
$language_negotiation_type = apply_filters('wpml_setting', false, 'language_negotiation_type');
|
721 |
if(($language_negotiation_type == 2) && $this->isPluginActive('sitepress-multilingual-cms/sitepress.php')){
|
722 |
-
$cache_path = '/cache
|
|
|
|
|
|
|
723 |
$disable_condition = true;
|
724 |
}else{
|
725 |
$cache_path = '/cache/all/';
|
@@ -1695,7 +1698,8 @@
|
|
1695 |
</button>
|
1696 |
<?php }else{ ?>
|
1697 |
|
1698 |
-
<?php if(is_multisite()){ ?>
|
|
|
1699 |
<button id="wpfc-buy-premium-button" type="submit" class="wpfc-btn primaryCta" style="width:200px;background-color:red;border-color:red;">
|
1700 |
<span>Not Available<br>for<br>Multi-Site</span>
|
1701 |
</button>
|
719 |
|
720 |
$language_negotiation_type = apply_filters('wpml_setting', false, 'language_negotiation_type');
|
721 |
if(($language_negotiation_type == 2) && $this->isPluginActive('sitepress-multilingual-cms/sitepress.php')){
|
722 |
+
$cache_path = '/cache/%{HTTP_HOST}/all/';
|
723 |
+
$disable_condition = true;
|
724 |
+
}else if($this->isPluginActive('polylang/polylang.php')){
|
725 |
+
$cache_path = '/cache/%{HTTP_HOST}/all/';
|
726 |
$disable_condition = true;
|
727 |
}else{
|
728 |
$cache_path = '/cache/all/';
|
1698 |
</button>
|
1699 |
<?php }else{ ?>
|
1700 |
|
1701 |
+
<?php //if(is_multisite()){ ?>
|
1702 |
+
<?php if(false){ ?>
|
1703 |
<button id="wpfc-buy-premium-button" type="submit" class="wpfc-btn primaryCta" style="width:200px;background-color:red;border-color:red;">
|
1704 |
<span>Not Available<br>for<br>Multi-Site</span>
|
1705 |
</button>
|
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.8
|
7 |
-
Stable tag: 0.9.
|
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.5 =
|
129 |
* to prevent generating cache when DONOTCACHEPAGE is defined as true for Divi theme
|
130 |
* to add nonce security system for cdn saving
|
4 |
Tags: cache, caching, performance, wp-cache, total cache, super cache, cdn
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 5.8
|
7 |
+
Stable tag: 0.9.6
|
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.6 =
|
129 |
+
* refactoring of serving non-exists minified files
|
130 |
+
* to fix htaccess rule for Polylang plugin
|
131 |
+
* to fix condition of clear cache after plugin update
|
132 |
+
|
133 |
= 0.9.5 =
|
134 |
* to prevent generating cache when DONOTCACHEPAGE is defined as true for Divi theme
|
135 |
* to add nonce security system for cdn saving
|
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.
|
7 |
Author: Emre Vona
|
8 |
Author URI: http://tr.linkedin.com/in/emrevona
|
9 |
Text Domain: wp-fastest-cache
|
@@ -326,14 +326,18 @@ GNU General Public License for more details.
|
|
326 |
}
|
327 |
}
|
328 |
|
329 |
-
|
330 |
-
if(preg_match("
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
|
|
|
|
|
|
336 |
}
|
|
|
337 |
}else{
|
338 |
// to show if the user is logged-in
|
339 |
add_action('wp_loaded', array($this, "load_admin_toolbar"));
|
@@ -359,7 +363,7 @@ GNU General Public License for more details.
|
|
359 |
|
360 |
public function clear_cache_after_update_plugin($upgrader_object, $options){
|
361 |
if($options['action'] == 'update'){
|
362 |
-
if($options['type'] == 'plugin' && isset($options['plugins'])){
|
363 |
$this->deleteCache(true);
|
364 |
}
|
365 |
}
|
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.6
|
7 |
Author: Emre Vona
|
8 |
Author URI: http://tr.linkedin.com/in/emrevona
|
9 |
Text Domain: wp-fastest-cache
|
326 |
}
|
327 |
}
|
328 |
|
329 |
+
|
330 |
+
if(preg_match("/".basename($this->getWpContentDir("/cache/wpfc-minified/"))."/i", $this->current_url())){
|
331 |
+
//for non-exists minified files
|
332 |
+
if(preg_match("/\.css/", $this->current_url())){
|
333 |
+
header('Content-type: text/css');
|
334 |
+
die("/* File not found */");
|
335 |
+
}else if(preg_match("/\.js/", $this->current_url())){
|
336 |
+
header('Content-type: text/js');
|
337 |
+
die("//File not found");
|
338 |
+
}
|
339 |
}
|
340 |
+
|
341 |
}else{
|
342 |
// to show if the user is logged-in
|
343 |
add_action('wp_loaded', array($this, "load_admin_toolbar"));
|
363 |
|
364 |
public function clear_cache_after_update_plugin($upgrader_object, $options){
|
365 |
if($options['action'] == 'update'){
|
366 |
+
if($options['type'] == 'plugin' && (isset($options['plugins']) || isset($options['plugin']))){
|
367 |
$this->deleteCache(true);
|
368 |
}
|
369 |
}
|