diff --git a/patches/0198-wp-super-cache-don-t-write-timestamp-cache-in-config.patch b/patches/0198-wp-super-cache-don-t-write-timestamp-cache-in-config.patch deleted file mode 100644 index d4d2caf21213f74bb97c885ff5fdee68e979c145..0000000000000000000000000000000000000000 --- a/patches/0198-wp-super-cache-don-t-write-timestamp-cache-in-config.patch +++ /dev/null @@ -1,44 +0,0 @@ -From 0fe2fdaa162e1b7c846449d506ab5b88ac24484c Mon Sep 17 00:00:00 2001 -From: godog <godog@autistici.org> -Date: Sat, 30 Sep 2017 16:05:26 +0200 -Subject: [PATCH 198/229] wp-super-cache: don't write timestamp cache in config - file - -Fixes ai/issues#104 ---- - .../plugins/wp-super-cache/wp-cache-phase2.php | 15 +++++++++++++++ - 1 file changed, 15 insertions(+) - -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 bc9c91c6..21315f5c 100644 ---- a/wp-content/plugins/wp-super-cache/wp-cache-phase2.php -+++ b/wp-content/plugins/wp-super-cache/wp-cache-phase2.php -@@ -3216,6 +3216,7 @@ function wp_cache_gc_watcher() { - } - } - -+ - if ( ! function_exists( 'apache_request_headers' ) ) { - /** - * A fallback for get request headers. -@@ -3236,3 +3237,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 ); -+ -+*/ -+ -+?> --- -2.17.1 -