WP Fastest Cache - Version 0.9.2

Version Description

  • [FEATURE] to create cache after publishing new post or updating a post [Details]
  • [FEATURE] Clear cache after activate/deactivate plugin [Details]
Download this release

Release Info

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

Code changes from version 0.9.1.9 to 0.9.2

Files changed (2) hide show
  1. readme.txt +6 -2
  2. wpFastestCache.php +15 -2
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
7
- Stable tag: 0.9.1.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -125,6 +125,10 @@ The free version is enough to speed up your site but in the premium version ther
125
 
126
  == Changelog ==
127
 
 
 
 
 
128
  = 0.9.1.9 =
129
  * <strong>[FEATURE]</strong> Clear cache after switch theme [<a target="_blank" href="https://www.wpfastestcache.com/features/clear-cache-after-switch-theme/">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.8
7
+ Stable tag: 0.9.2
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.2 =
129
+ * <strong>[FEATURE]</strong> to create cache after publishing new post or updating a post [<a target="_blank" href="https://www.wpfastestcache.com/features/automatic-cache/">Details</a>]
130
+ * <strong>[FEATURE]</strong> Clear cache after activate/deactivate plugin [<a target="_blank" href="https://www.wpfastestcache.com/features/clear-cache-after-activate-deactivate-a-plugin/">Details</a>]
131
+
132
  = 0.9.1.9 =
133
  * <strong>[FEATURE]</strong> Clear cache after switch theme [<a target="_blank" href="https://www.wpfastestcache.com/features/clear-cache-after-switch-theme/">Details</a>]
134
 
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.1.9
7
  Author: Emre Vona
8
  Author URI: http://tr.linkedin.com/in/emrevona
9
  Text Domain: wp-fastest-cache
@@ -125,6 +125,11 @@ GNU General Public License for more details.
125
  add_action('after_switch_theme', array($this, 'clear_cache_after_switch_theme'));
126
  }
127
 
 
 
 
 
 
128
  if(defined("WPFC_CLEAR_CACHE_AFTER_PLUGIN_UPDATE") && WPFC_CLEAR_CACHE_AFTER_PLUGIN_UPDATE){
129
  add_action('upgrader_process_complete', array($this, 'clear_cache_after_update_plugin'), 10, 2);
130
  }
@@ -153,7 +158,7 @@ GNU General Public License for more details.
153
 
154
 
155
 
156
- if(defined("WPFC_AUTOMATIC_CACHE") && WPFC_AUTOMATIC_CACHE){
157
  // to create cache for single content
158
  add_action("add_meta_boxes", array($this, "add_meta_box"), 10, 2);
159
  add_action('admin_notices', array($this, 'single_preload_inline_js'));
@@ -336,6 +341,14 @@ GNU General Public License for more details.
336
  }
337
  }
338
 
 
 
 
 
 
 
 
 
339
  public function clear_cache_after_switch_theme(){
340
  $this->deleteCache(true);
341
  }
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.2
7
  Author: Emre Vona
8
  Author URI: http://tr.linkedin.com/in/emrevona
9
  Text Domain: wp-fastest-cache
125
  add_action('after_switch_theme', array($this, 'clear_cache_after_switch_theme'));
126
  }
127
 
128
+ if(defined("WPFC_CLEAR_CACHE_AFTER_ACTIVATE_DEACTIVATE_PLUGIN") && WPFC_CLEAR_CACHE_AFTER_ACTIVATE_DEACTIVATE_PLUGIN){
129
+ add_action('activate_plugin', array($this, 'clear_cache_after_activate_plugin'));
130
+ add_action('deactivate_plugin', array($this, 'clear_cache_after_deactivate_plugin'));
131
+ }
132
+
133
  if(defined("WPFC_CLEAR_CACHE_AFTER_PLUGIN_UPDATE") && WPFC_CLEAR_CACHE_AFTER_PLUGIN_UPDATE){
134
  add_action('upgrader_process_complete', array($this, 'clear_cache_after_update_plugin'), 10, 2);
135
  }
158
 
159
 
160
 
161
+ if($this->isPluginActive('classic-editor/classic-editor.php')){
162
  // to create cache for single content
163
  add_action("add_meta_boxes", array($this, "add_meta_box"), 10, 2);
164
  add_action('admin_notices', array($this, 'single_preload_inline_js'));
341
  }
342
  }
343
 
344
+ public function clear_cache_after_activate_plugin(){
345
+ $this->deleteCache(true);
346
+ }
347
+
348
+ public function clear_cache_after_deactivate_plugin(){
349
+ $this->deleteCache(true);
350
+ }
351
+
352
  public function clear_cache_after_switch_theme(){
353
  $this->deleteCache(true);
354
  }