Version Description
Download this release
Release Info
Developer | satollo |
Plugin | Hyper Cache |
Version | 1.2.3 |
Comparing to | |
See all releases |
Code changes from version 1.2 to 1.2.3
- advanced-cache.php +5 -3
- options.php +2 -2
- plugin.php +6 -3
- readme.txt +1 -1
advanced-cache.php
CHANGED
@@ -87,10 +87,12 @@ function hyper_cache_callback($buffer)
|
|
87 |
{
|
88 |
global $hyper_redirect, $hyper_file, $hyper_compress, $post, $hyper_cache_name, $hyper_cache_gzip;
|
89 |
|
90 |
-
//
|
91 |
-
//
|
|
|
|
|
92 |
if (!$hyper_redirect && strlen($buffer) == 0) return '';
|
93 |
-
|
94 |
$data['uri'] = $_SERVER['REQUEST_URI'];
|
95 |
$data['referer'] = $_SERVER['HTTP_REFERER'];
|
96 |
$data['time'] = time();
|
87 |
{
|
88 |
global $hyper_redirect, $hyper_file, $hyper_compress, $post, $hyper_cache_name, $hyper_cache_gzip;
|
89 |
|
90 |
+
// A bug? May be WP call the "canonical_redirect" hook even when no redirect is really issued. If the
|
91 |
+
// uri equals the WP redirect, we ignore it.
|
92 |
+
if ($hyper_redirect == $_SERVER['REQUEST_URI']) $hyper_redirect = null;
|
93 |
+
|
94 |
if (!$hyper_redirect && strlen($buffer) == 0) return '';
|
95 |
+
|
96 |
$data['uri'] = $_SERVER['REQUEST_URI'];
|
97 |
$data['referer'] = $_SERVER['HTTP_REFERER'];
|
98 |
$data['time'] = time();
|
options.php
CHANGED
@@ -3,8 +3,8 @@
|
|
3 |
// load_plugin_textdomain('hyper-cache', 'wp-content/plugins/hyper-cache');
|
4 |
//}
|
5 |
|
6 |
-
include('en_US.php');
|
7 |
-
if (WPLANG) include(WPLANG . '.php');
|
8 |
|
9 |
function hyper_request( $name, $default=null ) {
|
10 |
if ( !isset($_POST[$name]) ) {
|
3 |
// load_plugin_textdomain('hyper-cache', 'wp-content/plugins/hyper-cache');
|
4 |
//}
|
5 |
|
6 |
+
include(ABSPATH . 'wp-content/plugins/hyper-cache/en_US.php');
|
7 |
+
if (WPLANG) include(ABSPATH . 'wp-content/plugins/hyper-cache/' . WPLANG . '.php');
|
8 |
|
9 |
function hyper_request( $name, $default=null ) {
|
10 |
if ( !isset($_POST[$name]) ) {
|
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.2
|
7 |
Author: Satollo
|
8 |
Author URI: http://www.satollo.com
|
9 |
Disclaimer: Use at your own risk. No warranty expressed or implied is provided.
|
@@ -114,8 +114,8 @@ function hyper_cache_invalidate($force=false)
|
|
114 |
|
115 |
$path = ABSPATH . 'wp-content/' . time();
|
116 |
rename(ABSPATH . 'wp-content/hyper-cache', $path);
|
117 |
-
hyper_delete_path( $path );
|
118 |
mkdir(ABSPATH . 'wp-content/hyper-cache', 0766);
|
|
|
119 |
}
|
120 |
|
121 |
function hyper_cache_invalidate_post($post_id)
|
@@ -219,7 +219,10 @@ $hyper_redirect = null;
|
|
219 |
function hyper_redirect_canonical($redirect_url, $requested_url)
|
220 |
{
|
221 |
global $hyper_redirect;
|
222 |
-
$
|
|
|
|
|
|
|
223 |
|
224 |
return $redirect_url;
|
225 |
}
|
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.2.3
|
7 |
Author: Satollo
|
8 |
Author URI: http://www.satollo.com
|
9 |
Disclaimer: Use at your own risk. No warranty expressed or implied is provided.
|
114 |
|
115 |
$path = ABSPATH . 'wp-content/' . time();
|
116 |
rename(ABSPATH . 'wp-content/hyper-cache', $path);
|
|
|
117 |
mkdir(ABSPATH . 'wp-content/hyper-cache', 0766);
|
118 |
+
hyper_delete_path( $path );
|
119 |
}
|
120 |
|
121 |
function hyper_cache_invalidate_post($post_id)
|
219 |
function hyper_redirect_canonical($redirect_url, $requested_url)
|
220 |
{
|
221 |
global $hyper_redirect;
|
222 |
+
if ($redirect_url != $requested_url)
|
223 |
+
{
|
224 |
+
$hyper_redirect = $redirect_url;
|
225 |
+
}
|
226 |
|
227 |
return $redirect_url;
|
228 |
}
|
readme.txt
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
Tags: cache,chaching
|
3 |
Requires at least: 2.1
|
4 |
Tested up to: 2.6.2
|
5 |
-
Stable tag: 1.2
|
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.6.2
|
5 |
+
Stable tag: 1.2.3
|
6 |
Donate link: http://www.satollo.com/english/donate
|
7 |
Contributors: satollo,momo360modena
|
8 |
|