Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
noblogs-wp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ai
noblogs-wp
Commits
20fbc741
Commit
20fbc741
authored
7 years ago
by
godog
Committed by
lucha
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
wp-super-cache: don't write timestamp cache in config file
Fixes ai/issues#104
parent
23d077f2
No related branches found
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
wp-content/plugins/wp-super-cache/wp-cache-phase2.php
+15
-0
15 additions, 0 deletions
wp-content/plugins/wp-super-cache/wp-cache-phase2.php
with
15 additions
and
0 deletions
wp-content/plugins/wp-super-cache/wp-cache-phase2.php
+
15
−
0
View file @
20fbc741
...
...
@@ -3082,6 +3082,7 @@ function wp_cache_gc_watcher() {
}
}
if
(
!
function_exists
(
'apache_request_headers'
)
)
{
/**
* A fallback for get request headers.
...
...
@@ -3102,3 +3103,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 );
*/
?>
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