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 3aacf331ea62903c6ee5a2f4b78acdde884fa0d9..787f533620f24c23921df96eca2df20139a61d19 100644 --- a/wp-content/plugins/wp-super-cache/wp-cache-phase2.php +++ b/wp-content/plugins/wp-super-cache/wp-cache-phase2.php @@ -3212,6 +3212,7 @@ function wp_cache_gc_watcher() { } } + if ( ! function_exists( 'apache_request_headers' ) ) { /** * A fallback for get request headers. @@ -3232,3 +3233,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 ); + +*/ + +?>