Version Description
- to clear cache after updating Elementor Website Builder plugin
- to clear cache after theme or plugin update by custom settings [Details]
- to enable Auto Cache Panel for the classic editor which is enabled via add_filter()
Download this release
Release Info
Developer | emrevona |
Plugin | WP Fastest Cache |
Version | 0.9.8 |
Comparing to | |
See all releases |
Code changes from version 0.9.7 to 0.9.8
- readme.txt +7 -2
- wpFastestCache.php +27 -16
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.
|
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.7 =
|
129 |
* to clear cache after theme or plugin update by default [<a target="_blank" href="https://www.wpfastestcache.com/features/clear-cache-after-theme-or-plugin-update/">Details</a>]
|
130 |
|
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.9
|
7 |
+
Stable tag: 0.9.8
|
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.8 =
|
129 |
+
* to clear cache after updating Elementor Website Builder plugin
|
130 |
+
* to clear cache after theme or plugin update by custom settings [<a target="_blank" href="https://www.wpfastestcache.com/features/clear-cache-after-theme-or-plugin-update/">Details</a>]
|
131 |
+
* to enable Auto Cache Panel for the classic editor which is enabled via add_filter()
|
132 |
+
|
133 |
= 0.9.7 =
|
134 |
* to clear cache after theme or plugin update by default [<a target="_blank" href="https://www.wpfastestcache.com/features/clear-cache-after-theme-or-plugin-update/">Details</a>]
|
135 |
|
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
|
@@ -157,23 +157,12 @@ GNU General Public License for more details.
|
|
157 |
add_action("wpfc_clear_all_site_cache", array($this, 'wpfc_clear_cache_of_allsites_callback'));
|
158 |
add_action("wpfc_clear_post_cache_by_id", array($this, 'singleDeleteCache'), 10, 2);
|
159 |
|
160 |
-
|
161 |
-
|
162 |
-
if($this->isPluginActive('classic-editor/classic-editor.php') || $this->isPluginActive('disable-gutenberg/disable-gutenberg.php')){
|
163 |
-
// to create cache for single content
|
164 |
-
add_action("add_meta_boxes", array($this, "add_meta_box"), 10, 2);
|
165 |
-
add_action('admin_notices', array($this, 'single_preload_inline_js'));
|
166 |
-
add_action('wp_ajax_wpfc_preload_single_save_settings', array($this, "wpfc_preload_single_save_settings_callback"));
|
167 |
-
add_action('wp_ajax_wpfc_preload_single', array($this, "wpfc_preload_single_callback"));
|
168 |
-
}
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
|
173 |
// to add settings link
|
174 |
add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array($this, 'action_links'));
|
175 |
|
176 |
-
|
177 |
// to clear cache after ajax request by other plugins
|
178 |
if(isset($_POST["action"])){
|
179 |
// All In One Schema.org Rich Snippets
|
@@ -346,6 +335,15 @@ GNU General Public License for more details.
|
|
346 |
}
|
347 |
}
|
348 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
349 |
public function clear_cache_after_activate_plugin(){
|
350 |
$this->deleteCache(true);
|
351 |
}
|
@@ -361,7 +359,16 @@ GNU General Public License for more details.
|
|
361 |
public function clear_cache_after_update_plugin($upgrader_object, $options){
|
362 |
if($options['action'] == 'update'){
|
363 |
if($options['type'] == 'plugin' && (isset($options['plugins']) || isset($options['plugin']))){
|
364 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
365 |
}
|
366 |
}
|
367 |
}
|
@@ -369,7 +376,11 @@ GNU General Public License for more details.
|
|
369 |
public function clear_cache_after_update_theme($upgrader_object, $options){
|
370 |
if($options['action'] == 'update'){
|
371 |
if($options['type'] == 'theme' && isset($options['themes'])){
|
372 |
-
|
|
|
|
|
|
|
|
|
373 |
}
|
374 |
}
|
375 |
}
|
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.8
|
7 |
Author: Emre Vona
|
8 |
Author URI: http://tr.linkedin.com/in/emrevona
|
9 |
Text Domain: wp-fastest-cache
|
157 |
add_action("wpfc_clear_all_site_cache", array($this, 'wpfc_clear_cache_of_allsites_callback'));
|
158 |
add_action("wpfc_clear_post_cache_by_id", array($this, 'singleDeleteCache'), 10, 2);
|
159 |
|
160 |
+
// to enable Auto Cache Panel for the classic editor
|
161 |
+
add_action( 'admin_init', array($this, 'enable_auto_cache_settings_panel'));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
162 |
|
163 |
// to add settings link
|
164 |
add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array($this, 'action_links'));
|
165 |
|
|
|
166 |
// to clear cache after ajax request by other plugins
|
167 |
if(isset($_POST["action"])){
|
168 |
// All In One Schema.org Rich Snippets
|
335 |
}
|
336 |
}
|
337 |
|
338 |
+
public function enable_auto_cache_settings_panel(){
|
339 |
+
if($this->isPluginActive('classic-editor/classic-editor.php') || $this->isPluginActive('disable-gutenberg/disable-gutenberg.php') || has_filter("use_block_editor_for_post", "__return_false")){
|
340 |
+
add_action("add_meta_boxes", array($this, "add_meta_box"), 10, 2);
|
341 |
+
add_action('admin_notices', array($this, 'single_preload_inline_js'));
|
342 |
+
add_action('wp_ajax_wpfc_preload_single_save_settings', array($this, "wpfc_preload_single_save_settings_callback"));
|
343 |
+
add_action('wp_ajax_wpfc_preload_single', array($this, "wpfc_preload_single_callback"));
|
344 |
+
}
|
345 |
+
}
|
346 |
+
|
347 |
public function clear_cache_after_activate_plugin(){
|
348 |
$this->deleteCache(true);
|
349 |
}
|
359 |
public function clear_cache_after_update_plugin($upgrader_object, $options){
|
360 |
if($options['action'] == 'update'){
|
361 |
if($options['type'] == 'plugin' && (isset($options['plugins']) || isset($options['plugin']))){
|
362 |
+
|
363 |
+
$options_json = json_encode($options);
|
364 |
+
|
365 |
+
if(preg_match("/elementor\\\\\/elementor\.php/i", $options_json)){
|
366 |
+
$this->deleteCache(true);
|
367 |
+
}
|
368 |
+
|
369 |
+
if(defined("WPFC_CLEAR_CACHE_AFTER_PLUGIN_UPDATE") && WPFC_CLEAR_CACHE_AFTER_PLUGIN_UPDATE){
|
370 |
+
$this->deleteCache(true);
|
371 |
+
}
|
372 |
}
|
373 |
}
|
374 |
}
|
376 |
public function clear_cache_after_update_theme($upgrader_object, $options){
|
377 |
if($options['action'] == 'update'){
|
378 |
if($options['type'] == 'theme' && isset($options['themes'])){
|
379 |
+
|
380 |
+
if(defined("WPFC_CLEAR_CACHE_AFTER_THEME_UPDATE") && WPFC_CLEAR_CACHE_AFTER_THEME_UPDATE){
|
381 |
+
$this->deleteCache(true);
|
382 |
+
}
|
383 |
+
|
384 |
}
|
385 |
}
|
386 |
}
|