Version Description
- to remove "via php" text if WPFC_REMOVE_FOOTER_COMMENT is defined as true
- to fix the problem which show the same cache for every language on Polylang
- [FEATURE] to remove wordpress emojis [Details]
Download this release
Release Info
Developer | emrevona |
Plugin | WP Fastest Cache |
Version | 0.8.7.6 |
Comparing to | |
See all releases |
Code changes from version 0.8.7.5 to 0.8.7.6
- inc/admin.php +11 -0
- inc/cache.php +27 -2
- readme.txt +7 -1
- wpFastestCache.php +3 -2
inc/admin.php
CHANGED
@@ -794,6 +794,8 @@
|
|
794 |
$wpFastestCacheGzip = isset($this->options->wpFastestCacheGzip) ? 'checked="checked"' : "";
|
795 |
$wpFastestCacheCombineJs = isset($this->options->wpFastestCacheCombineJs) ? 'checked="checked"' : "";
|
796 |
$wpFastestCacheCombineJsPowerFul = isset($this->options->wpFastestCacheCombineJsPowerFul) ? 'checked="checked"' : "";
|
|
|
|
|
797 |
$wpFastestCacheRenderBlocking = isset($this->options->wpFastestCacheRenderBlocking) ? 'checked="checked"' : "";
|
798 |
|
799 |
$wpFastestCacheRenderBlockingCss = isset($this->options->wpFastestCacheRenderBlockingCss) ? 'checked="checked"' : "";
|
@@ -1117,6 +1119,13 @@
|
|
1117 |
<div class="get-info"><a target="_blank" href="http://www.wpfastestcache.com/optimization/leverage-browser-caching/"><img src="<?php echo plugins_url("wp-fastest-cache/images/info.png"); ?>" /></a></div>
|
1118 |
</div>
|
1119 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1120 |
<?php if(class_exists("WpFastestCachePowerfulHtml")){ ?>
|
1121 |
<?php if(method_exists("WpFastestCachePowerfulHtml", "render_blocking")){ ?>
|
1122 |
<div class="questionCon">
|
@@ -1197,6 +1206,8 @@
|
|
1197 |
// "pt-PT",
|
1198 |
// "pt-BR",
|
1199 |
"tr-TR",
|
|
|
|
|
1200 |
"berkatan.com",
|
1201 |
"yenihobiler.com",
|
1202 |
"hobiblogu.com",
|
794 |
$wpFastestCacheGzip = isset($this->options->wpFastestCacheGzip) ? 'checked="checked"' : "";
|
795 |
$wpFastestCacheCombineJs = isset($this->options->wpFastestCacheCombineJs) ? 'checked="checked"' : "";
|
796 |
$wpFastestCacheCombineJsPowerFul = isset($this->options->wpFastestCacheCombineJsPowerFul) ? 'checked="checked"' : "";
|
797 |
+
$wpFastestCacheDisableEmojis = isset($this->options->wpFastestCacheDisableEmojis) ? 'checked="checked"' : "";
|
798 |
+
|
799 |
$wpFastestCacheRenderBlocking = isset($this->options->wpFastestCacheRenderBlocking) ? 'checked="checked"' : "";
|
800 |
|
801 |
$wpFastestCacheRenderBlockingCss = isset($this->options->wpFastestCacheRenderBlockingCss) ? 'checked="checked"' : "";
|
1119 |
<div class="get-info"><a target="_blank" href="http://www.wpfastestcache.com/optimization/leverage-browser-caching/"><img src="<?php echo plugins_url("wp-fastest-cache/images/info.png"); ?>" /></a></div>
|
1120 |
</div>
|
1121 |
|
1122 |
+
<div class="questionCon">
|
1123 |
+
<div class="question">Disable Emojis</div>
|
1124 |
+
<div class="inputCon"><input type="checkbox" <?php echo $wpFastestCacheDisableEmojis; ?> id="wpFastestCacheDisableEmojis" name="wpFastestCacheDisableEmojis"><label for="wpFastestCacheDisableEmojis">You can remove the emoji inline css and wp-emoji-release.min.js</label></div>
|
1125 |
+
<div class="get-info"><a target="_blank" href="http://www.wpfastestcache.com/optimization/disableremove-wordpress-emojis/"><img src="<?php echo plugins_url("wp-fastest-cache/images/info.png"); ?>" /></a></div>
|
1126 |
+
</div>
|
1127 |
+
|
1128 |
+
|
1129 |
<?php if(class_exists("WpFastestCachePowerfulHtml")){ ?>
|
1130 |
<?php if(method_exists("WpFastestCachePowerfulHtml", "render_blocking")){ ?>
|
1131 |
<div class="questionCon">
|
1206 |
// "pt-PT",
|
1207 |
// "pt-BR",
|
1208 |
"tr-TR",
|
1209 |
+
"rynofitness.com.au",
|
1210 |
+
"margotickets.com",
|
1211 |
"berkatan.com",
|
1212 |
"yenihobiler.com",
|
1213 |
"hobiblogu.com",
|
inc/cache.php
CHANGED
@@ -21,6 +21,20 @@
|
|
21 |
$this->set_exclude_rules();
|
22 |
|
23 |
$this->set_content_url();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
}
|
25 |
|
26 |
public function detect_current_page_type(){
|
@@ -268,6 +282,13 @@
|
|
268 |
return 0;
|
269 |
}
|
270 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
271 |
if($this->exclude_page()){
|
272 |
//echo "<!-- Wp Fastest Cache: Exclude Page -->"."\n";
|
273 |
return 0;
|
@@ -285,8 +306,12 @@
|
|
285 |
//to show cache version via php if htaccess rewrite rule does not work
|
286 |
if($this->cacheFilePath && @file_exists($this->cacheFilePath."index.html")){
|
287 |
if($content = @file_get_contents($this->cacheFilePath."index.html")){
|
288 |
-
|
289 |
-
|
|
|
|
|
|
|
|
|
290 |
}
|
291 |
}else{
|
292 |
if($this->isMobile()){
|
21 |
$this->set_exclude_rules();
|
22 |
|
23 |
$this->set_content_url();
|
24 |
+
|
25 |
+
if(isset($this->options->wpFastestCacheDisableEmojis) && $this->options->wpFastestCacheDisableEmojis){
|
26 |
+
add_action('init', array($this, 'disable_emojis'));
|
27 |
+
}
|
28 |
+
}
|
29 |
+
|
30 |
+
public function disable_emojis(){
|
31 |
+
remove_action('wp_head', 'print_emoji_detection_script', 7);
|
32 |
+
remove_action('admin_print_scripts', 'print_emoji_detection_script');
|
33 |
+
remove_filter('the_content_feed', 'wp_staticize_emoji');
|
34 |
+
remove_filter('comment_text_rss', 'wp_staticize_emoji');
|
35 |
+
remove_action('wp_print_styles', 'print_emoji_styles');
|
36 |
+
remove_action('admin_print_styles', 'print_emoji_styles');
|
37 |
+
remove_filter('wp_mail', 'wp_staticize_emoji_for_email');
|
38 |
}
|
39 |
|
40 |
public function detect_current_page_type(){
|
282 |
return 0;
|
283 |
}
|
284 |
|
285 |
+
//different domain names may be used for different languages
|
286 |
+
if($this->isPluginActive('polylang/polylang.php')){
|
287 |
+
if(!preg_match("/".preg_quote(str_replace("www.", "", $_SERVER["HTTP_HOST"]), "/")."/i", get_option("home"))){
|
288 |
+
return 0;
|
289 |
+
}
|
290 |
+
}
|
291 |
+
|
292 |
if($this->exclude_page()){
|
293 |
//echo "<!-- Wp Fastest Cache: Exclude Page -->"."\n";
|
294 |
return 0;
|
306 |
//to show cache version via php if htaccess rewrite rule does not work
|
307 |
if($this->cacheFilePath && @file_exists($this->cacheFilePath."index.html")){
|
308 |
if($content = @file_get_contents($this->cacheFilePath."index.html")){
|
309 |
+
if(defined('WPFC_REMOVE_FOOTER_COMMENT') && WPFC_REMOVE_FOOTER_COMMENT){
|
310 |
+
die($content);
|
311 |
+
}else{
|
312 |
+
$content = $content."<!-- via php -->";
|
313 |
+
die($content);
|
314 |
+
}
|
315 |
}
|
316 |
}else{
|
317 |
if($this->isMobile()){
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ 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.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -52,6 +52,7 @@ Wpfc does not support Wordpress Multisite yet.
|
|
52 |
5. Leverage browser caching - Reduce page load times for repeat visitors
|
53 |
6. Combine CSS - Reduce number of HTTP round-trips by combining multiple CSS resources into one
|
54 |
7. Combine JS
|
|
|
55 |
|
56 |
<h4>Supported languages: </h4>
|
57 |
|
@@ -101,6 +102,11 @@ Wpfc does not support Wordpress Multisite yet.
|
|
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
|
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.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
52 |
5. Leverage browser caching - Reduce page load times for repeat visitors
|
53 |
6. Combine CSS - Reduce number of HTTP round-trips by combining multiple CSS resources into one
|
54 |
7. Combine JS
|
55 |
+
8. Disable Emoji - You can remove the emoji inline css and wp-emoji-release.min.js
|
56 |
|
57 |
<h4>Supported languages: </h4>
|
58 |
|
102 |
|
103 |
== Changelog ==
|
104 |
|
105 |
+
= 0.8.7.6 =
|
106 |
+
* to remove "via php" text if WPFC_REMOVE_FOOTER_COMMENT is defined as true
|
107 |
+
* to fix the problem which show the same cache for every language on Polylang
|
108 |
+
* <strong>[FEATURE]</strong> to remove wordpress emojis [<a target="_blank" href="http://www.wpfastestcache.com/optimization/disableremove-wordpress-emojis/">Details</a>]
|
109 |
+
|
110 |
= 0.8.7.5 =
|
111 |
* <strong>[FEATURE]</strong> Compatible with Easy HTTPS (SSL) Redirection
|
112 |
* to clear of the post when WPML is active
|
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.
|
7 |
Author: Emre Vona
|
8 |
Author URI: http://tr.linkedin.com/in/emrevona
|
9 |
Text Domain: wp-fastest-cache
|
@@ -1479,7 +1479,8 @@ GNU General Public License for more details.
|
|
1479 |
}
|
1480 |
|
1481 |
public function wpfc_remote_get($url, $user_agent){
|
1482 |
-
|
|
|
1483 |
|
1484 |
if (!$response || is_wp_error($response)){
|
1485 |
echo $response->get_error_message()." - ";
|
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.6
|
7 |
Author: Emre Vona
|
8 |
Author URI: http://tr.linkedin.com/in/emrevona
|
9 |
Text Domain: wp-fastest-cache
|
1479 |
}
|
1480 |
|
1481 |
public function wpfc_remote_get($url, $user_agent){
|
1482 |
+
//$response = wp_remote_get($url, array('timeout' => 10, 'sslverify' => false, 'headers' => array("cache-control" => array("no-store, no-cache, must-revalidate", "post-check=0, pre-check=0"),'user-agent' => $user_agent)));
|
1483 |
+
$response = wp_remote_get($url, array('user-agent' => $user_agent, 'timeout' => 10, 'sslverify' => false, 'headers' => array("cache-control" => "no-store, no-cache, must-revalidate, post-check=0, pre-check=0")));
|
1484 |
|
1485 |
if (!$response || is_wp_error($response)){
|
1486 |
echo $response->get_error_message()." - ";
|