Skip to content
Snippets Groups Projects
Commit f40e24a9 authored by godog's avatar godog Committed by agata
Browse files

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

Fixes ai/issues#104
parent 777448fd
No related branches found
No related tags found
No related merge requests found
......@@ -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 );
*/
?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment