Commit 89f4386f authored by godog's avatar godog Committed by kiki

wp-super-cache: don't write timestamp cache in config file

Fixes ai/issues#104
parent a3f787d8
......@@ -3106,6 +3106,7 @@ function wp_cache_gc_watcher() {
}
}
if ( ! function_exists( 'apache_request_headers' ) ) {
/**
* A fallback for get request headers.
......@@ -3126,3 +3127,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 );
*/
?>
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