Version Description
Download this release
Release Info
Developer | donncha |
Plugin | WP Super Cache |
Version | 1.7.1 |
Comparing to | |
See all releases |
Code changes from version 1.7.0 to 1.7.1
- ossdl-cdn.php +1 -1
- readme.txt +13 -4
- wp-cache.php +5 -4
ossdl-cdn.php
CHANGED
@@ -314,7 +314,7 @@ function scossdl_off_options() {
|
|
314 |
}
|
315 |
?>
|
316 |
<h3><?php _e( 'Simple CDN' ); ?></h3>
|
317 |
-
<p><?php _e( 'Your website probably uses lots of static files. Image, Javascript and CSS files are usually static files that could just as easily be served from another site or CDN. Therefore, this plugin replaces any links in the <code>wp-content</code> and <code>wp-includes</code> directories (except for PHP files) on your site with the URL you provide below. That way you can either copy all the static content to a dedicated host or mirror the files to a CDN by <a href="https://
|
318 |
<p><?php printf( __( '<strong style="color: red">WARNING:</strong> Test some static urls e.g., %s to ensure your CDN service is fully working before saving changes.', 'wp-super-cache' ), '<code>' . esc_html( $example_cdn_uri ) . '</code>' ); ?></p>
|
319 |
|
320 |
<?php if ( get_home_url() !== $ossdl_off_blog_url ) { ?>
|
314 |
}
|
315 |
?>
|
316 |
<h3><?php _e( 'Simple CDN' ); ?></h3>
|
317 |
+
<p><?php _e( 'Your website probably uses lots of static files. Image, Javascript and CSS files are usually static files that could just as easily be served from another site or CDN. Therefore, this plugin replaces any links in the <code>wp-content</code> and <code>wp-includes</code> directories (except for PHP files) on your site with the URL you provide below. That way you can either copy all the static content to a dedicated host or mirror the files to a CDN by <a href="https://www.google.com/search?q=cdn+origin+pull" target="_blank">origin pull</a>.', 'wp-super-cache' ); ?></p>
|
318 |
<p><?php printf( __( '<strong style="color: red">WARNING:</strong> Test some static urls e.g., %s to ensure your CDN service is fully working before saving changes.', 'wp-super-cache' ), '<code>' . esc_html( $example_cdn_uri ) . '</code>' ); ?></p>
|
319 |
|
320 |
<?php if ( get_home_url() !== $ossdl_off_blog_url ) { ?>
|
readme.txt
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
# WP Super Cache #
|
2 |
-
* Contributors: donncha, automattic
|
3 |
* Tags: performance, caching, wp-cache, wp-super-cache, cache
|
4 |
-
* Tested up to: 5.
|
5 |
-
* Stable tag: 1.7.
|
6 |
* Requires at least: 3.1
|
7 |
* Requires PHP: 5.2.4
|
8 |
* License: GPLv2 or later
|
@@ -89,7 +89,10 @@ There is one regular WordPress filter too. Use the "do_createsupercache" filter
|
|
89 |
to customize the checks made before caching. The filter accepts one parameter.
|
90 |
The output of WP-Cache's wp_cache_get_cookies_values() function.
|
91 |
|
92 |
-
WP Super Cache has
|
|
|
|
|
|
|
93 |
|
94 |
The cookies WP Super Cache uses to identify "known users" can be modified now by adding the names of those cookies to a list in the plugin configuration. Use wpsc_add_cookie( $name ) to add a new cookie, and wpsc_delete_cookie( $name ) to remove it. The cookie names also modify the mod_rewrite rules used by the plugin but I recommend using Simple mode caching to avoid complications with updating the .htaccess file.
|
95 |
The cookie name and value are used to differenciate users so you can have one cookie, but different values for each type of user on your site for example. They'll be served different cache files.
|
@@ -266,6 +269,12 @@ Your theme is probably responsive which means it resizes the page to suit whatev
|
|
266 |
|
267 |
## Changelog ##
|
268 |
|
|
|
|
|
|
|
|
|
|
|
|
|
269 |
### 1.7.0 ###
|
270 |
* Added "wpsc_cdn_urls" filter to modify the URLs used to rewrite URLs. #697
|
271 |
* Fixed CDN functionality for logged in users. #698
|
1 |
# WP Super Cache #
|
2 |
+
* Contributors: donncha, automattic
|
3 |
* Tags: performance, caching, wp-cache, wp-super-cache, cache
|
4 |
+
* Tested up to: 5.3.2
|
5 |
+
* Stable tag: 1.7.1
|
6 |
* Requires at least: 3.1
|
7 |
* Requires PHP: 5.2.4
|
8 |
* License: GPLv2 or later
|
89 |
to customize the checks made before caching. The filter accepts one parameter.
|
90 |
The output of WP-Cache's wp_cache_get_cookies_values() function.
|
91 |
|
92 |
+
WP Super Cache has its own plugin system. This code is loaded when WP Super Cache loads and can be used to change how caching is done. This is before most of WordPress loads so some functionality will not be available. Plugins can be located anywhere that PHP can load them. Add your own plugin either:
|
93 |
+
|
94 |
+
* by putting your plugin in the wp-content/plugins/wp-super-cache-plugins directory, or
|
95 |
+
* by calling wpsc_add_plugin( $name ) where $name is the full filename and path to the plugin. You only need to call that function once to add it. Use wpsc_delete_plugin( $name ) to remove it from the list of loaded plugins.
|
96 |
|
97 |
The cookies WP Super Cache uses to identify "known users" can be modified now by adding the names of those cookies to a list in the plugin configuration. Use wpsc_add_cookie( $name ) to add a new cookie, and wpsc_delete_cookie( $name ) to remove it. The cookie names also modify the mod_rewrite rules used by the plugin but I recommend using Simple mode caching to avoid complications with updating the .htaccess file.
|
98 |
The cookie name and value are used to differenciate users so you can have one cookie, but different values for each type of user on your site for example. They'll be served different cache files.
|
269 |
|
270 |
## Changelog ##
|
271 |
|
272 |
+
### 1.7.1 ###
|
273 |
+
* Minor fixes to docs. #709 #645
|
274 |
+
* Fixed typo on cache contents page. #719
|
275 |
+
* Fixed array index warning. #724
|
276 |
+
* Updated yellow box links. #725
|
277 |
+
|
278 |
### 1.7.0 ###
|
279 |
* Added "wpsc_cdn_urls" filter to modify the URLs used to rewrite URLs. #697
|
280 |
* Fixed CDN functionality for logged in users. #698
|
wp-cache.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: WP Super Cache
|
4 |
Plugin URI: https://wordpress.org/plugins/wp-super-cache/
|
5 |
Description: Very fast caching plugin for WordPress.
|
6 |
-
Version: 1.7.
|
7 |
Author: Automattic
|
8 |
Author URI: https://automattic.com/
|
9 |
License: GPL2+
|
@@ -1341,10 +1341,11 @@ table.wpsc-settings-table {
|
|
1341 |
</fieldset>
|
1342 |
</td><td valign='top' style='width: 300px'>
|
1343 |
<div style='background: #ffc; border: 1px solid #333; margin: 2px; padding: 3px 15px'>
|
1344 |
-
<h4><?php _e( '
|
1345 |
<ul style="list-style: square; margin-left: 2em;">
|
1346 |
<li><a href="https://jetpack.com/redirect/?source=jitm-wpsc-generic"><?php _e( 'Speed up images and photos (free)', 'wp-super-cache' ); ?></a></li>
|
1347 |
<li><a href="https://jetpack.com/redirect/?source=jitm-wpsc-premium"><?php _e( 'Fast video hosting (paid)', 'wp-super-cache' ); ?></a></li>
|
|
|
1348 |
</ul>
|
1349 |
<h4><?php _e( 'Need Help?', 'wp-super-cache' ); ?></h4>
|
1350 |
<ol>
|
@@ -2877,7 +2878,7 @@ function wp_cache_files() {
|
|
2877 |
echo "<li>" . sprintf( __( '%s Expired Pages', 'wp-super-cache' ), $cache_stats[ 'supercache' ][ 'expired' ] ) . "</li></ul>";
|
2878 |
if ( $valid_nonce && array_key_exists('listfiles', $_GET) && isset( $_GET[ 'listfiles' ] ) ) {
|
2879 |
echo "<div style='padding: 10px; border: 1px solid #333; height: 400px; width: 90%; overflow: auto'>";
|
2880 |
-
$cache_description = array( 'supercache' => __( 'Super
|
2881 |
foreach( $cache_stats as $type => $details ) {
|
2882 |
if ( is_array( $details ) == false )
|
2883 |
continue;
|
@@ -3713,7 +3714,7 @@ add_filter( 'option_preload_cache_counter', 'option_preload_cache_counter' );
|
|
3713 |
|
3714 |
function check_up_on_preloading() {
|
3715 |
$value = get_option( 'preload_cache_counter' );
|
3716 |
-
if ( $value[ 'c' ] > 0 && ( time() - $value[ 't' ] ) > 3600 && false == wp_next_scheduled( 'wp_cache_preload_hook' ) ) {
|
3717 |
if ( is_admin() ) {
|
3718 |
if ( get_option( 'wpsc_preload_restart_email' ) < ( time() - 86400 ) ) {
|
3719 |
wp_mail( get_option( 'admin_email' ), sprintf( __( '[%s] Preload may have stalled.', 'wp-super-cache' ), get_bloginfo( 'url' ) ), sprintf( __( "Preload has been restarted.\n%s", 'wp-super-cache' ), admin_url( "options-general.php?page=wpsupercache" ) ) );
|
3 |
Plugin Name: WP Super Cache
|
4 |
Plugin URI: https://wordpress.org/plugins/wp-super-cache/
|
5 |
Description: Very fast caching plugin for WordPress.
|
6 |
+
Version: 1.7.1
|
7 |
Author: Automattic
|
8 |
Author URI: https://automattic.com/
|
9 |
License: GPL2+
|
1341 |
</fieldset>
|
1342 |
</td><td valign='top' style='width: 300px'>
|
1343 |
<div style='background: #ffc; border: 1px solid #333; margin: 2px; padding: 3px 15px'>
|
1344 |
+
<h4><?php _e( 'Other Site Tools', 'wp-super-cache' ); ?></h4>
|
1345 |
<ul style="list-style: square; margin-left: 2em;">
|
1346 |
<li><a href="https://jetpack.com/redirect/?source=jitm-wpsc-generic"><?php _e( 'Speed up images and photos (free)', 'wp-super-cache' ); ?></a></li>
|
1347 |
<li><a href="https://jetpack.com/redirect/?source=jitm-wpsc-premium"><?php _e( 'Fast video hosting (paid)', 'wp-super-cache' ); ?></a></li>
|
1348 |
+
<li><a href="https://crowdsignal.com/pricing/?ad=wpsc"><?php _e( 'Add Surveys and Polls to your site', 'wp-super-cache' ); ?></a></li>
|
1349 |
</ul>
|
1350 |
<h4><?php _e( 'Need Help?', 'wp-super-cache' ); ?></h4>
|
1351 |
<ol>
|
2878 |
echo "<li>" . sprintf( __( '%s Expired Pages', 'wp-super-cache' ), $cache_stats[ 'supercache' ][ 'expired' ] ) . "</li></ul>";
|
2879 |
if ( $valid_nonce && array_key_exists('listfiles', $_GET) && isset( $_GET[ 'listfiles' ] ) ) {
|
2880 |
echo "<div style='padding: 10px; border: 1px solid #333; height: 400px; width: 90%; overflow: auto'>";
|
2881 |
+
$cache_description = array( 'supercache' => __( 'WP-Super-Cached', 'wp-super-cache' ), 'wpcache' => __( 'WP-Cached', 'wp-super-cache' ) );
|
2882 |
foreach( $cache_stats as $type => $details ) {
|
2883 |
if ( is_array( $details ) == false )
|
2884 |
continue;
|
3714 |
|
3715 |
function check_up_on_preloading() {
|
3716 |
$value = get_option( 'preload_cache_counter' );
|
3717 |
+
if ( is_array( $value ) && $value[ 'c' ] > 0 && ( time() - $value[ 't' ] ) > 3600 && false == wp_next_scheduled( 'wp_cache_preload_hook' ) ) {
|
3718 |
if ( is_admin() ) {
|
3719 |
if ( get_option( 'wpsc_preload_restart_email' ) < ( time() - 86400 ) ) {
|
3720 |
wp_mail( get_option( 'admin_email' ), sprintf( __( '[%s] Preload may have stalled.', 'wp-super-cache' ), get_bloginfo( 'url' ) ), sprintf( __( "Preload has been restarted.\n%s", 'wp-super-cache' ), admin_url( "options-general.php?page=wpsupercache" ) ) );
|