Hyper Cache - Version 3.3.9

Version Description

  • Added clean up of blog posts page (thanks Erich)
Download this release

Release Info

Developer satollo
Plugin Icon wp plugin Hyper Cache
Version 3.3.9
Comparing to
See all releases

Code changes from version 3.3.8 to 3.3.9

Files changed (2) hide show
  1. plugin.php +10 -3
  2. readme.txt +7 -2
plugin.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Hyper Cache
5
  Plugin URI: https://www.satollo.net/plugins/hyper-cache
6
  Description: A easy to configure and efficient cache to increase the speed of your blog.
7
- Version: 3.3.8
8
  Author: Stefano Lissa
9
  Author URI: https://www.satollo.net
10
  Disclaimer: Use at your own risk. No warranty expressed or implied is provided.
@@ -252,7 +252,7 @@ class HyperCache {
252
 
253
  if ($this->options['clean_last_posts'] != 0) {
254
  $posts = get_posts(array('numberposts' => $this->options['clean_last_posts']));
255
- foreach ($posts as &$post) {
256
  $dir = $folder . $this->post_folder($post_id);
257
  $this->remove_dir($dir);
258
  }
@@ -274,6 +274,13 @@ class HyperCache {
274
  $this->remove_dir($dir . '/feed/');
275
  // Home subpages
276
  $this->remove_dir($dir . '/page/');
 
 
 
 
 
 
 
277
  }
278
 
279
  //@unlink($dir . '/robots.txt');
@@ -290,7 +297,7 @@ class HyperCache {
290
  if (substr($permalink_structure, 0, 11) == '/%category%') {
291
  $categories = get_categories();
292
  //$this->log(print_r($categories, true));
293
- foreach ($categories as &$category) {
294
  //$this->log('Removing: ' . $dir . '/' . $category->slug . '/');
295
  $this->remove_page($dir . '/' . $category->slug);
296
  }
4
  Plugin Name: Hyper Cache
5
  Plugin URI: https://www.satollo.net/plugins/hyper-cache
6
  Description: A easy to configure and efficient cache to increase the speed of your blog.
7
+ Version: 3.3.9
8
  Author: Stefano Lissa
9
  Author URI: https://www.satollo.net
10
  Disclaimer: Use at your own risk. No warranty expressed or implied is provided.
252
 
253
  if ($this->options['clean_last_posts'] != 0) {
254
  $posts = get_posts(array('numberposts' => $this->options['clean_last_posts']));
255
+ foreach ($posts as $post) {
256
  $dir = $folder . $this->post_folder($post_id);
257
  $this->remove_dir($dir);
258
  }
274
  $this->remove_dir($dir . '/feed/');
275
  // Home subpages
276
  $this->remove_dir($dir . '/page/');
277
+ // Blog Pages (ERICH)
278
+ if ( intval( get_option( 'page_for_posts' ) ) > 0 )
279
+ {
280
+ $url = get_permalink( get_option( 'page_for_posts' ) );
281
+ $this->remove_dir( $dir . parse_url( $url, PHP_URL_PATH ) );
282
+ }
283
+
284
  }
285
 
286
  //@unlink($dir . '/robots.txt');
297
  if (substr($permalink_structure, 0, 11) == '/%category%') {
298
  $categories = get_categories();
299
  //$this->log(print_r($categories, true));
300
+ foreach ($categories as $category) {
301
  //$this->log('Removing: ' . $dir . '/' . $category->slug . '/');
302
  $this->remove_page($dir . '/' . $category->slug);
303
  }
readme.txt CHANGED
@@ -1,8 +1,8 @@
1
  === Hyper Cache ===
2
  Tags: cache,performance,staticizer,apache,htaccess,tuning,speed,bandwidth,optimization,tidy,gzip,compression,server load,boost
3
  Requires at least: 3.9
4
- Tested up to: 5.2
5
- Stable tag: 3.3.8
6
  Donate link: https://www.satollo.net/donations
7
  Contributors: satollo
8
 
@@ -44,6 +44,7 @@ Other plugins by Stefano Lissa:
44
  * [Newsletter](https://www.thenewsletterplugin.com)
45
  * [Header and Footer](https://www.satollo.net/plugins/header-footer)
46
  * [Include Me](https://www.satollo.net/plugins/include-me)
 
47
 
48
  == Installation ==
49
 
@@ -66,6 +67,10 @@ the [Hyper Cache official forum](https://www.satollo.net/forums/forum/hyper-cach
66
 
67
  == Changelog ==
68
 
 
 
 
 
69
  = 3.3.8 =
70
 
71
  * Small improvement on 404 caching
1
  === Hyper Cache ===
2
  Tags: cache,performance,staticizer,apache,htaccess,tuning,speed,bandwidth,optimization,tidy,gzip,compression,server load,boost
3
  Requires at least: 3.9
4
+ Tested up to: 5.2.2
5
+ Stable tag: 3.3.9
6
  Donate link: https://www.satollo.net/donations
7
  Contributors: satollo
8
 
44
  * [Newsletter](https://www.thenewsletterplugin.com)
45
  * [Header and Footer](https://www.satollo.net/plugins/header-footer)
46
  * [Include Me](https://www.satollo.net/plugins/include-me)
47
+ * [Thumbnails](http://www.satollo.net/plugins/thumbnails)
48
 
49
  == Installation ==
50
 
67
 
68
  == Changelog ==
69
 
70
+ = 3.3.9 =
71
+
72
+ * Added clean up of blog posts page (thanks Erich)
73
+
74
  = 3.3.8 =
75
 
76
  * Small improvement on 404 caching