Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
noblogs-composer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container registry
Model registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Noblogs
noblogs-composer
Commits
4f1d1427
Commit
4f1d1427
authored
4 years ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Remove patch that does nothing
parent
d483256e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
patches/0198-wp-super-cache-don-t-write-timestamp-cache-in-config.patch
+0
-44
0 additions, 44 deletions
...p-super-cache-don-t-write-timestamp-cache-in-config.patch
with
0 additions
and
44 deletions
patches/0198-wp-super-cache-don-t-write-timestamp-cache-in-config.patch
deleted
100644 → 0
+
0
−
44
View file @
d483256e
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment