WP Super Cache - Version 0.9.9.5

Version Description

Don't enable compression or footer link on easy caching page and other bugfixes.

=

Download this release

Release Info

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

Code changes from version 0.9.9.4 to 0.9.9.5

Files changed (3) hide show
  1. Changelog.txt +32 -0
  2. readme.txt +9 -3
  3. wp-cache.php +5 -12
Changelog.txt CHANGED
@@ -1,3 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  2010-09-22 16:02 donncha
2
 
3
  * readme.txt, wp-cache.php: Bump version to 0.9.9.4 and update some
1
+ 2010-09-24 11:31 donncha
2
+
3
+ * readme.txt, wp-cache.php: Bump to 0.9.9.5 for minor bug fixes.
4
+
5
+ 2010-09-24 11:26 donncha
6
+
7
+ * wp-cache.php: Show the lockdown menu again.
8
+
9
+ 2010-09-24 07:00 donncha
10
+
11
+ * wp-cache.php: Disable compression when using easy page, and only
12
+ warn of mod_rewrite rules if they're turned off
13
+
14
+ 2010-09-24 06:47 donncha
15
+
16
+ * wp-cache.php: Disable cache compression, still problems with the
17
+ occasional host.
18
+
19
+ 2010-09-23 18:08 donncha
20
+
21
+ * wp-cache.php: The plugin works somewhat well in safemode so don't
22
+ stop users using the settings page.
23
+
24
+ 2010-09-23 17:53 donncha
25
+
26
+ * wp-cache.php: No more hello world notices and don't delete
27
+ mod_rewrite rules when caching is disabled
28
+
29
+ 2010-09-22 16:05 donncha
30
+
31
+ * Changelog.txt: Updated changelog
32
+
33
  2010-09-22 16:02 donncha
34
 
35
  * readme.txt, wp-cache.php: Bump version to 0.9.9.4 and update some
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: donncha, automattic
3
  Tags: performance,caching,wp-cache,wp-super-cache,cache
4
  Tested up to: 3.0.1
5
- Stable tag: 0.9.9.4
6
  Requires at least: 2.9.2
7
 
8
  A very fast caching engine for WordPress that produces static html files.
@@ -50,11 +50,17 @@ The [changelog](http://svn.wp-plugins.org/wp-super-cache/trunk/Changelog.txt) is
50
 
51
  == Upgrade Notice ==
52
 
53
- = 0.9.9.4 =
54
- Cache tester fixes, Easy settings page and tabs to settings page, new PHP caching mode, fixes to mobile support, domain mapping support plugin.
55
 
56
  == Changelog ==
57
 
 
 
 
 
 
 
58
  = 0.9.9.4 =
59
  * Settings page split into tabbed pages.
60
  * Added new "Easy" settings page for new users.
2
  Contributors: donncha, automattic
3
  Tags: performance,caching,wp-cache,wp-super-cache,cache
4
  Tested up to: 3.0.1
5
+ Stable tag: 0.9.9.5
6
  Requires at least: 2.9.2
7
 
8
  A very fast caching engine for WordPress that produces static html files.
50
 
51
  == Upgrade Notice ==
52
 
53
+ = 0.9.9.5 =
54
+ Don't enable compression or footer link on easy caching page and other bugfixes.
55
 
56
  == Changelog ==
57
 
58
+ = 0.9.9.5 =
59
+ * Disable compression on on easy setup page. Still causes problems on some hosts.
60
+ * Remove footerlink on easy setup page.
61
+ * Don't delete mod_rewrite rules when caching is disabled.
62
+ * Don't stop users using settings page when in safe mode.
63
+
64
  = 0.9.9.4 =
65
  * Settings page split into tabbed pages.
66
  * Added new "Easy" settings page for new users.
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.9.4
7
  Author: Donncha O Caoimh
8
  Author URI: http://ocaoimh.ie/
9
  */
@@ -146,7 +146,6 @@ function wp_cache_manager_error_checks() {
146
  _e( 'You or an administrator must disable this. See the <a href="http://php.net/features.safe-mode">safe mode manual page</a> for further details. This cannot be disabled in a .htaccess file unfortunately. It must be done in the php.ini config file.', 'wp-super-cache' );
147
  }
148
  echo '</p></div>';
149
- return false;
150
  }
151
 
152
  if ( '' == get_option( 'permalink_structure' ) ) {
@@ -299,10 +298,8 @@ function wp_cache_manager_updates() {
299
  $_POST[ 'wp_cache_mobile_enabled' ] = 1;
300
  $_POST[ 'wp_cache_status' ] = 'all';
301
  $_POST[ 'super_cache_enabled' ] = 2; // PHP
302
- $_POST[ 'wp_cache_hello_world' ] = 1;
303
  $_POST[ 'cache_rebuild_files' ] = 1;
304
- $_POST[ 'cache_compression' ] = 1;
305
- insert_with_markers( trailingslashit( get_home_path() ) . '.htaccess', 'WPSuperCache', array() );
306
  } else {
307
  unset( $_POST[ 'wp_cache_status' ] );
308
  $_POST[ 'super_cache_enabled' ] = 0;
@@ -333,7 +330,6 @@ function wp_cache_manager_updates() {
333
  $wp_cache_mod_rewrite = 1; // we need this because supercached files can be served by PHP too.
334
  } else {
335
  $wp_cache_mod_rewrite = 0;
336
- insert_with_markers( trailingslashit( get_home_path() ) . '.htaccess', 'WPSuperCache', array() );
337
  }
338
  wp_cache_replace_line('^ *\$wp_cache_mod_rewrite', '$wp_cache_mod_rewrite = ' . $wp_cache_mod_rewrite . ";", $wp_cache_config_file);
339
  }
@@ -860,17 +856,17 @@ jQuery(document).ready(function(){
860
  <fieldset>
861
  <label><input type='radio' name='wp_cache_easy_on' value='1' <?php if ( $cache_enabled == true ) { echo 'checked=checked'; } ?>> <?php _e( 'Caching On', 'wp-super-cache' ); echo " <em>(" . __( "Recommended", "wp-super-cache" ) . ")</em>"; ?></label><br />
862
  <label><input type='radio' name='wp_cache_easy_on' value='0' <?php if ( $cache_enabled == false ) { echo 'checked=checked'; } ?>> <?php _e( 'Caching Off', 'wp-super-cache' ); ?></label><br />
863
- <em><?php _e( 'Note: enables PHP caching, compression, cache rebuild, Supercache footer message and mobile support', 'wp-super-cache' ); ?></em><br />
864
  </legend>
865
  </fieldset>
866
  </td>
867
  </tr>
868
  </table>
869
  <?php
870
- if( $cache_enabled ) {
871
  $scrules = trim( implode( "\n", extract_from_markers( trailingslashit( get_home_path() ) . '.htaccess', 'WPSuperCache' ) ) );
872
  if ( $scrules != '' ) {
873
- echo "<p><strong>" . __( 'Notice: Supercache mod_rewrite rules detected. Cached files will be served using those rules. Please see the Advanced settings page for more info.', 'wp-super-cache' ) . '</strong></p>';
874
  }
875
  }
876
  echo "<div class='submit'><input class='button-primary' type='submit' " . SUBMITDISABLED . " value='" . __( 'Update Status', 'wp-super-cache' ) . " &raquo;' /></div>";?>
@@ -1075,9 +1071,6 @@ function wp_lock_down() {
1075
  global $wpdb, $cache_path, $wp_cache_config_file, $valid_nonce, $cached_direct_pages, $cache_enabled, $super_cache_enabled;
1076
  global $wp_super_cache_lock_down;
1077
 
1078
- if ( !isset( $wp_super_cache_lock_down ) || ( isset( $wp_super_cache_lock_down ) && $wp_super_cache_lock_down != 1 ) )
1079
- return false;
1080
-
1081
  if(isset($_POST['wp_lock_down']) && $valid_nonce) {
1082
  $wp_lock_down = $_POST['wp_lock_down'] == '1' ? '1' : '0';
1083
  wp_cache_replace_line('^.*WPLOCKDOWN', "define( 'WPLOCKDOWN', '$wp_lock_down' );", $wp_cache_config_file);
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.9.5
7
  Author: Donncha O Caoimh
8
  Author URI: http://ocaoimh.ie/
9
  */
146
  _e( 'You or an administrator must disable this. See the <a href="http://php.net/features.safe-mode">safe mode manual page</a> for further details. This cannot be disabled in a .htaccess file unfortunately. It must be done in the php.ini config file.', 'wp-super-cache' );
147
  }
148
  echo '</p></div>';
 
149
  }
150
 
151
  if ( '' == get_option( 'permalink_structure' ) ) {
298
  $_POST[ 'wp_cache_mobile_enabled' ] = 1;
299
  $_POST[ 'wp_cache_status' ] = 'all';
300
  $_POST[ 'super_cache_enabled' ] = 2; // PHP
 
301
  $_POST[ 'cache_rebuild_files' ] = 1;
302
+ unset( $_POST[ 'cache_compression' ] );
 
303
  } else {
304
  unset( $_POST[ 'wp_cache_status' ] );
305
  $_POST[ 'super_cache_enabled' ] = 0;
330
  $wp_cache_mod_rewrite = 1; // we need this because supercached files can be served by PHP too.
331
  } else {
332
  $wp_cache_mod_rewrite = 0;
 
333
  }
334
  wp_cache_replace_line('^ *\$wp_cache_mod_rewrite', '$wp_cache_mod_rewrite = ' . $wp_cache_mod_rewrite . ";", $wp_cache_config_file);
335
  }
856
  <fieldset>
857
  <label><input type='radio' name='wp_cache_easy_on' value='1' <?php if ( $cache_enabled == true ) { echo 'checked=checked'; } ?>> <?php _e( 'Caching On', 'wp-super-cache' ); echo " <em>(" . __( "Recommended", "wp-super-cache" ) . ")</em>"; ?></label><br />
858
  <label><input type='radio' name='wp_cache_easy_on' value='0' <?php if ( $cache_enabled == false ) { echo 'checked=checked'; } ?>> <?php _e( 'Caching Off', 'wp-super-cache' ); ?></label><br />
859
+ <em><?php _e( 'Note: enables PHP caching, cache rebuild, and mobile support', 'wp-super-cache' ); ?></em><br />
860
  </legend>
861
  </fieldset>
862
  </td>
863
  </tr>
864
  </table>
865
  <?php
866
+ if( $cache_enabled && !$wp_cache_mod_rewrite ) {
867
  $scrules = trim( implode( "\n", extract_from_markers( trailingslashit( get_home_path() ) . '.htaccess', 'WPSuperCache' ) ) );
868
  if ( $scrules != '' ) {
869
+ echo "<p><strong>" . __( 'Notice: Supercache mod_rewrite rules detected. Cached files will be served using those rules. Edit the .htaccess file in the root of your install and remove the SuperCache rules.', 'wp-super-cache' ) . '</strong></p>';
870
  }
871
  }
872
  echo "<div class='submit'><input class='button-primary' type='submit' " . SUBMITDISABLED . " value='" . __( 'Update Status', 'wp-super-cache' ) . " &raquo;' /></div>";?>
1071
  global $wpdb, $cache_path, $wp_cache_config_file, $valid_nonce, $cached_direct_pages, $cache_enabled, $super_cache_enabled;
1072
  global $wp_super_cache_lock_down;
1073
 
 
 
 
1074
  if(isset($_POST['wp_lock_down']) && $valid_nonce) {
1075
  $wp_lock_down = $_POST['wp_lock_down'] == '1' ? '1' : '0';
1076
  wp_cache_replace_line('^.*WPLOCKDOWN', "define( 'WPLOCKDOWN', '$wp_lock_down' );", $wp_cache_config_file);