Version Description
Download this release
Release Info
Developer | donncha |
Plugin | WP Super Cache |
Version | 0.9.4.2 |
Comparing to | |
See all releases |
Code changes from version 0.9.4.1 to 0.9.4.2
- readme.txt +1 -1
- wp-cache-phase2.php +6 -5
- wp-cache.php +1 -1
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.2
|
6 |
Requires at least: 2.6
|
7 |
Donate link: http://ocaoimh.ie/wordpress-plugins/gifts-and-donations/
|
8 |
|
wp-cache-phase2.php
CHANGED
@@ -4,9 +4,6 @@ function wp_cache_phase2() {
|
|
4 |
global $cache_filename, $cache_acceptable_files, $wp_cache_gzip_encoding, $super_cache_enabled, $cache_rebuild_files, $wp_cache_gmt_offset, $wp_cache_blog_charset, $wp_cache_last_gc;
|
5 |
global $cache_max_time, $wp_cache_not_logged_in;
|
6 |
|
7 |
-
if( $wp_cache_not_logged_in && is_user_logged_in() )
|
8 |
-
return false;
|
9 |
-
|
10 |
$wp_cache_gmt_offset = get_option( 'gmt_offset' ); // caching for later use when wpdb is gone. http://wordpress.org/support/topic/224349
|
11 |
$wp_cache_blog_charset = get_option( 'blog_charset' );
|
12 |
|
@@ -31,11 +28,15 @@ function wp_cache_phase2() {
|
|
31 |
|
32 |
do_cacheaction( 'add_cacheaction' );
|
33 |
}
|
|
|
|
|
|
|
|
|
34 |
if( $_SERVER["REQUEST_METHOD"] == 'POST' || get_option('gzipcompression'))
|
35 |
-
return;
|
36 |
$script = basename($_SERVER['PHP_SELF']);
|
37 |
if (!in_array($script, $cache_acceptable_files) && wp_cache_is_rejected($_SERVER["REQUEST_URI"]))
|
38 |
-
return;
|
39 |
if (wp_cache_user_agent_is_rejected()) return;
|
40 |
if($wp_cache_gzip_encoding)
|
41 |
header('Vary: Accept-Encoding, Cookie');
|
4 |
global $cache_filename, $cache_acceptable_files, $wp_cache_gzip_encoding, $super_cache_enabled, $cache_rebuild_files, $wp_cache_gmt_offset, $wp_cache_blog_charset, $wp_cache_last_gc;
|
5 |
global $cache_max_time, $wp_cache_not_logged_in;
|
6 |
|
|
|
|
|
|
|
7 |
$wp_cache_gmt_offset = get_option( 'gmt_offset' ); // caching for later use when wpdb is gone. http://wordpress.org/support/topic/224349
|
8 |
$wp_cache_blog_charset = get_option( 'blog_charset' );
|
9 |
|
28 |
|
29 |
do_cacheaction( 'add_cacheaction' );
|
30 |
}
|
31 |
+
|
32 |
+
if( $wp_cache_not_logged_in && is_user_logged_in() )
|
33 |
+
return false;
|
34 |
+
|
35 |
if( $_SERVER["REQUEST_METHOD"] == 'POST' || get_option('gzipcompression'))
|
36 |
+
return false;
|
37 |
$script = basename($_SERVER['PHP_SELF']);
|
38 |
if (!in_array($script, $cache_acceptable_files) && wp_cache_is_rejected($_SERVER["REQUEST_URI"]))
|
39 |
+
return false;
|
40 |
if (wp_cache_user_agent_is_rejected()) return;
|
41 |
if($wp_cache_gzip_encoding)
|
42 |
header('Vary: Accept-Encoding, Cookie');
|
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 |
*/
|
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.2
|
7 |
Author: Donncha O Caoimh
|
8 |
Author URI: http://ocaoimh.ie/
|
9 |
*/
|