diff --git a/wp-content/plugins/wp-super-cache/wp-cache-phase2.php b/wp-content/plugins/wp-super-cache/wp-cache-phase2.php index ec4dc94fc1a99ebb448c5cc39f27bb2b2e6a7dfd..df3e7cf5418452a0a10d372776f9e55a7a5b5d77 100644 --- a/wp-content/plugins/wp-super-cache/wp-cache-phase2.php +++ b/wp-content/plugins/wp-super-cache/wp-cache-phase2.php @@ -3224,6 +3224,7 @@ function wp_cache_gc_watcher() { } } + if ( ! function_exists( 'apache_request_headers' ) ) { /** * A fallback for get request headers. @@ -3244,3 +3245,17 @@ if ( ! function_exists( 'apache_request_headers' ) ) { return $headers; } } + +/* + * Do not write the blog timestamp in the config file. + * wp-cache-config.php isn't writable by 'noblogs' user. + * https://git.autistici.org/ai/issues/issues/104 + +function wpsc_timestamp_cache_update( $type, $permalink ) { + wp_cache_setting( 'wpsc_last_post_update', time() ); +} +add_action( 'gc_cache', 'wpsc_timestamp_cache_update', 10, 2 ); + +*/ + +?>