Hyper Cache - Version 1.0.9

Version Description

Download this release

Release Info

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

Code changes from version 1.0.8 to 1.0.9

Files changed (3) hide show
  1. options.php +7 -3
  2. plugin.php +7 -3
  3. readme.txt +1 -1
options.php CHANGED
@@ -63,7 +63,8 @@ if (isset($_POST['save'])) {
63
  $options = hyper_request('options');
64
  update_option('hyper', $options);
65
 
66
- if (!$options['timeout'] || !is_numeric($options['timeout'])) {
 
67
  $options['timeout'] = 60;
68
  }
69
 
@@ -76,9 +77,12 @@ if (isset($_POST['save'])) {
76
  fwrite($file, $buffer);
77
  fclose($file);
78
 
79
- } else {
 
 
80
  $options = get_option('hyper');
81
- if (!$options['timeout']) {
 
82
  $options['timeout'] = 60;
83
  }
84
  }
63
  $options = hyper_request('options');
64
  update_option('hyper', $options);
65
 
66
+ if (!$options['timeout'] || !is_numeric($options['timeout']))
67
+ {
68
  $options['timeout'] = 60;
69
  }
70
 
77
  fwrite($file, $buffer);
78
  fclose($file);
79
 
80
+ }
81
+ else
82
+ {
83
  $options = get_option('hyper');
84
+ if (!$options['timeout'])
85
+ {
86
  $options['timeout'] = 60;
87
  }
88
  }
plugin.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Hyper Cache
4
  Plugin URI: http://www.satollo.com/english/wordpress/hyper-cache
5
  Description: Hyper Cache is an extremely aggressive cache for WordPress.
6
- Version: 1.0.8
7
  Author: Satollo
8
  Author URI: http://www.satollo.com
9
  Disclaimer: Use at your own risk. No warranty expressed or implied is provided.
@@ -29,6 +29,9 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
29
  ---
30
  Changelog
31
  ---
 
 
 
32
  Version 1.0.8
33
  - fixed the "clear cache" that didn't work when "not exipre on actions" was set
34
 
@@ -98,7 +101,7 @@ function hyper_cache_invalidate($force=false)
98
  {
99
  global $hyper_options;
100
 
101
- if (!force && $hyper_options['not_expire_on_actions']) return;
102
 
103
  $path = ABSPATH . 'wp-content/' . time();
104
  rename(ABSPATH . 'wp-content/hyper-cache', $path);
@@ -133,7 +136,8 @@ function hyper_count() {
133
  }
134
 
135
 
136
- if ( $hyper_options['cache'] ) {
 
137
  // Posts
138
  add_action('publish_post', 'hyper_cache_invalidate', 0);
139
  add_action('edit_post', 'hyper_cache_invalidate', 0);
3
  Plugin Name: Hyper Cache
4
  Plugin URI: http://www.satollo.com/english/wordpress/hyper-cache
5
  Description: Hyper Cache is an extremely aggressive cache for WordPress.
6
+ Version: 1.0.9
7
  Author: Satollo
8
  Author URI: http://www.satollo.com
9
  Disclaimer: Use at your own risk. No warranty expressed or implied is provided.
29
  ---
30
  Changelog
31
  ---
32
+ Verison 1.0.9
33
+ - fixed a bug in the "not expire" management
34
+
35
  Version 1.0.8
36
  - fixed the "clear cache" that didn't work when "not exipre on actions" was set
37
 
101
  {
102
  global $hyper_options;
103
 
104
+ if (!$force && $hyper_options['not_expire_on_actions']) return;
105
 
106
  $path = ABSPATH . 'wp-content/' . time();
107
  rename(ABSPATH . 'wp-content/hyper-cache', $path);
136
  }
137
 
138
 
139
+ if ( $hyper_options['cache'] && !$hyper_options['not_expire_on_actions'])
140
+ {
141
  // Posts
142
  add_action('publish_post', 'hyper_cache_invalidate', 0);
143
  add_action('edit_post', 'hyper_cache_invalidate', 0);
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Tags: cache,chaching
3
  Requires at least: 2.1
4
  Tested up to: 2.5.1
5
- Stable tag: 1.0.8
6
  Donate link: http://www.satollo.com/english/donate
7
  Contributors: satollo,momo360modena
8
 
2
  Tags: cache,chaching
3
  Requires at least: 2.1
4
  Tested up to: 2.5.1
5
+ Stable tag: 1.0.9
6
  Donate link: http://www.satollo.com/english/donate
7
  Contributors: satollo,momo360modena
8