Commit 89762c4c authored by agata's avatar agata

[auto] plugin: wp-super-cache 1.6.9

parent 8db53dfe
# WP Super Cache #
* Contributors: donncha, automattic, kraftbj
* Tags: performance, caching, wp-cache, wp-super-cache, cache
* Tested up to: 5.1.1
* Stable tag: 1.6.5
* Tested up to: 5.2.2
* Stable tag: 1.6.9
* Requires at least: 3.1
* Requires PHP: 5.2.4
* License: GPLv2 or later
......@@ -266,6 +266,29 @@ Your theme is probably responsive which means it resizes the page to suit whatev
## Changelog ##
### 1.6.9 ###
* Improve the variables and messaging used by advanced-cache.php code. #687
* Add a warning message to the debug log viewer. #688
* Disable raw viewing of the debug log. #691
* Clean up the debug log. #692 #694
* Added wpsc_update_check() in 9659af156344a77ae247dc582d52053d95c79b93.
### 1.6.8 ###
* Added new constants, WPSC_SERVE_DISABLED (disable serving of cached files) and WPSC_SUPERCACHE_ONLY (only serve supercache cache files). #682 and #672
* Hide get_post() warning on some sites. #684
* Check if WPCACHEHOME is set correctly before maybe updating it. #683
* Remove object cache support as it never worked properly. #681
* Add "logged in users" to the "do not cache for users" setting and rename that setting to "Cache Restrictions" #657
### 1.6.7 ###
* wp_cache_setting() can now save boolean values since many of the settings are bools. #676
* Check if $super_cache_enabled is true in a less strict way because it might be '1' rather than true. #677
### 1.6.6 ###
* Fix problems with saving settings. Returns false ONLY when there's an issue with the config file, not when the setting isn't changed. Change other code to cope with that, including updating WPCACHEHOME (#670)
* When saving settings rename the temporary config file correctly, and delete wp-admin/.php if it exists. (#673)
* Fix adding WPCACHEHOME to wp-config.php when advanced-cache.php is not found and wp-config.php is RO. (#674)
### 1.6.5 ###
* Check advanced-cache.php was created by the plugin before modifying/deleting it. (#666)
* When saving settings, save blank lines. Fixes problems with WP_CACHE and WPCACHEHOME in wp-config.php. Related to #652. (#667)
......@@ -713,4 +736,4 @@ Your theme is probably responsive which means it resizes the page to suit whatev
## Upgrade Notice ##
Many bug fixes
Fix security issue with debug log.
......@@ -233,12 +233,12 @@ class WP_Super_Cache_Rest_Update_Settings extends WP_REST_Controller {
protected function set_wp_cache_not_logged_in( $value ) {
global $wp_cache_not_logged_in, $cache_path;
if ( 1 == $value ) {
if ( 0 != $value ) {
if ( 0 == $wp_cache_not_logged_in && function_exists( 'prune_super_cache' ) ) {
prune_super_cache( $cache_path, true );
}
$wp_cache_not_logged_in = 1;
$wp_cache_not_logged_in = (int) $value;
} else {
$wp_cache_not_logged_in = 0;
......@@ -454,6 +454,7 @@ class WP_Super_Cache_Rest_Update_Settings extends WP_REST_Controller {
'is_cache_enabled' => 1,
'cache_rebuild_files' => 1,
'cache_compression' => 0,
'wp_cache_not_logged_in' => 2,
);
wp_cache_enable();
if ( ! defined( 'DISABLE_SUPERCACHE' ) ) {
......@@ -489,7 +490,6 @@ class WP_Super_Cache_Rest_Update_Settings extends WP_REST_Controller {
'wp_supercache_cache_list',
'wp_cache_hello_world',
'wp_cache_clear_on_post_edit',
'wp_cache_not_logged_in',
'wp_cache_make_known_anon',
'wp_cache_object_cache',
'wp_cache_refresh_single_only',
......
......@@ -54,7 +54,6 @@ $wp_super_cache_front_page_clear = 0;
$wp_super_cache_front_page_check = 0;
$wp_super_cache_front_page_notification = '0';
$wp_cache_object_cache = 0;
$wp_cache_anon_only = 0;
$wp_supercache_cache_list = 0;
$wp_cache_debug_to_file = 0;
......@@ -76,6 +75,7 @@ $wp_cache_pages[ "author" ] = 0;
$wp_cache_hide_donation = 0;
$wp_cache_not_logged_in = 0;
$wp_cache_clear_on_post_edit = 0;
$wp_cache_hello_world = 0;
$wp_cache_mobile_enabled = 0;
$wp_cache_cron_check = 0;
$wp_cache_mfunc_enabled = 0;
......@@ -101,4 +101,5 @@ $cache_gc_email_me = 0;
$wpsc_save_headers = 0;
$cache_schedule_interval = 'daily';
$wp_super_cache_comments = 1;
$wpsc_version = 169;
?>
......@@ -73,7 +73,11 @@ if (
$wp_start_time = microtime();
if ( $wp_cache_not_logged_in && wp_cache_get_cookies_values() ) {
if ( wpsc_is_backend() ) {
return true;
}
if ( wpsc_is_caching_user_disabled() ) {
wp_cache_debug( 'Caching disabled for logged in users on settings page.' );
return true;
}
......@@ -84,7 +88,6 @@ if ( isset( $wp_cache_make_known_anon ) && $wp_cache_make_known_anon ) {
do_cacheaction( 'cache_init' );
if ( ! $cache_enabled || ( isset( $_SERVER['REQUEST_METHOD'] ) && in_array( $_SERVER['REQUEST_METHOD'], array( 'POST', 'PUT', 'DELETE' ) ) ) || isset( $_GET['customize_changeset_uuid'] ) ) {
return true;
}
......@@ -108,18 +111,6 @@ if ( function_exists( 'add_filter' ) ) { // loaded since WordPress 4.6
$wp_cache_request_uri = $_SERVER['REQUEST_URI']; // Cache this in case any plugin modifies it.
if ( $wp_cache_object_cache ) {
if ( ! include_once WP_CONTENT_DIR . '/object-cache.php' ) {
return;
}
wp_cache_init(); // Note: wp-settings.php calls wp_cache_init() which clobbers the object made here.
if ( ! is_object( $wp_object_cache ) ) {
return;
}
}
if ( defined( 'DOING_CRON' ) ) {
extract( wp_super_cache_init() ); // $key, $cache_filename, $meta_file, $cache_file, $meta_pathname
return true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment