Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ai
noblogs-wp
Commits
e50fd6be
Commit
e50fd6be
authored
Sep 30, 2017
by
godog
Committed by
agata
Jul 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wp-super-cache: don't write timestamp cache in config file
Fixes ai/issues#104
parent
b3625087
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
wp-content/plugins/wp-super-cache/wp-cache-phase2.php
wp-content/plugins/wp-super-cache/wp-cache-phase2.php
+15
-0
No files found.
wp-content/plugins/wp-super-cache/wp-cache-phase2.php
View file @
e50fd6be
...
...
@@ -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 );
*/
?>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment