WP Super Cache - Version 0.9.4.1

Version Description

Download this release

Release Info

Developer donncha
Plugin Icon 128x128 WP Super Cache
Version 0.9.4.1
Comparing to
See all releases

Code changes from version 0.9.4 to 0.9.4.1

Files changed (3) hide show
  1. Changelog.txt +14 -0
  2. readme.txt +1 -1
  3. wp-cache.php +9 -5
Changelog.txt CHANGED
@@ -1,3 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  2009-04-21 15:45 donncha
2
 
3
  * readme.txt: Updated recent changes
1
+ 2009-04-21 19:53 donncha
2
+
3
+ * readme.txt, wp-cache.php: Bumped version to 0.9.4.1
4
+
5
+ 2009-04-21 19:52 donncha
6
+
7
+ * wp-cache.php: Oops, make sure the "don't cache if logged in"
8
+ checkbox can be unchecked!
9
+ Clear the cache when it's enabled
10
+
11
+ 2009-04-21 15:46 donncha
12
+
13
+ * Changelog.txt: Updated changelog
14
+
15
  2009-04-21 15:45 donncha
16
 
17
  * readme.txt: Updated recent changes
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: donncha
3
  Tags: performance,caching,wp-cache,wp-super-cache,cache
4
  Tested up to: 2.7.1
5
- Stable tag: 0.9.4
6
  Requires at least: 2.6
7
  Donate link: http://ocaoimh.ie/wordpress-plugins/gifts-and-donations/
8
 
2
  Contributors: donncha
3
  Tags: performance,caching,wp-cache,wp-super-cache,cache
4
  Tested up to: 2.7.1
5
+ Stable tag: 0.9.4.1
6
  Requires at least: 2.6
7
  Donate link: http://ocaoimh.ie/wordpress-plugins/gifts-and-donations/
8
 
wp-cache.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP Super Cache
4
  Plugin URI: http://ocaoimh.ie/wp-super-cache/
5
  Description: Very fast caching plugin for WordPress.
6
- Version: 0.9.4
7
  Author: Donncha O Caoimh
8
  Author URI: http://ocaoimh.ie/
9
  */
@@ -294,6 +294,14 @@ jQuery(document).ready(function(){
294
  $wp_cache_mutex_disabled = 1;
295
  }
296
  wp_cache_replace_line('^ *\$wp_cache_mutex_disabled', "\$wp_cache_mutex_disabled = " . $wp_cache_mutex_disabled . ";", $wp_cache_config_file);
 
 
 
 
 
 
 
 
297
  }
298
  if( isset( $_POST[ 'cache_compression' ] ) && $_POST[ 'cache_compression' ] != $cache_compression ) {
299
  $cache_compression_changed = true;
@@ -307,10 +315,6 @@ jQuery(document).ready(function(){
307
  $wp_cache_hide_donation = intval( $_POST[ 'wp_cache_hide_donation' ] );
308
  wp_cache_replace_line('^ *\$wp_cache_hide_donation', "\$wp_cache_hide_donation = " . $wp_cache_hide_donation . ";", $wp_cache_config_file);
309
  }
310
- if( isset( $_POST[ 'wp_cache_not_logged_in' ] ) && $_POST[ 'wp_cache_not_logged_in' ] != $wp_cache_not_logged_in ) {
311
- $wp_cache_not_logged_in = intval( $_POST[ 'wp_cache_not_logged_in' ] );
312
- wp_cache_replace_line('^ *\$wp_cache_not_logged_in', "\$wp_cache_not_logged_in = " . $wp_cache_not_logged_in . ";", $wp_cache_config_file);
313
- }
314
  }
315
 
316
  ?>
3
  Plugin Name: WP Super Cache
4
  Plugin URI: http://ocaoimh.ie/wp-super-cache/
5
  Description: Very fast caching plugin for WordPress.
6
+ Version: 0.9.4.1
7
  Author: Donncha O Caoimh
8
  Author URI: http://ocaoimh.ie/
9
  */
294
  $wp_cache_mutex_disabled = 1;
295
  }
296
  wp_cache_replace_line('^ *\$wp_cache_mutex_disabled', "\$wp_cache_mutex_disabled = " . $wp_cache_mutex_disabled . ";", $wp_cache_config_file);
297
+ if( isset( $_POST[ 'wp_cache_not_logged_in' ] ) ) {
298
+ if( $wp_cache_not_logged_in == 0 && function_exists( 'prune_super_cache' ) )
299
+ prune_super_cache ($cache_path, true);
300
+ $wp_cache_not_logged_in = 1;
301
+ } else {
302
+ $wp_cache_not_logged_in = 0;
303
+ }
304
+ wp_cache_replace_line('^ *\$wp_cache_not_logged_in', "\$wp_cache_not_logged_in = " . $wp_cache_not_logged_in . ";", $wp_cache_config_file);
305
  }
306
  if( isset( $_POST[ 'cache_compression' ] ) && $_POST[ 'cache_compression' ] != $cache_compression ) {
307
  $cache_compression_changed = true;
315
  $wp_cache_hide_donation = intval( $_POST[ 'wp_cache_hide_donation' ] );
316
  wp_cache_replace_line('^ *\$wp_cache_hide_donation', "\$wp_cache_hide_donation = " . $wp_cache_hide_donation . ";", $wp_cache_config_file);
317
  }
 
 
 
 
318
  }
319
 
320
  ?>