Skip to content
Snippets Groups Projects
Commit 4f1d1427 authored by ale's avatar ale
Browse files

Remove patch that does nothing

parent d483256e
Branches
Tags
No related merge requests found
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment