Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
871e6bd2
Commit
871e6bd2
authored
Oct 31, 2012
by
Nathaniel Catchpole
Browse files
Issue
#1824854
by cam8001: Convert variable drupal_stale_file_threshold() to CMI system.
parent
adf2518b
Changes
3
Hide whitespace changes
Inline
Side-by-side
core/includes/common.inc
View file @
871e6bd2
...
...
@@ -3455,7 +3455,7 @@ function drupal_clear_css_cache() {
*/
function
drupal_delete_file_if_stale
(
$uri
)
{
// Default stale file threshold is 30 days.
if
(
REQUEST_TIME
-
filemtime
(
$uri
)
>
variable_get
(
'drupal_
stale_file_threshold'
,
2592000
))
{
if
(
REQUEST_TIME
-
filemtime
(
$uri
)
>
config
(
'system.performance'
)
->
get
(
'preprocess.
stale_file_threshold'
))
{
file_unmanaged_delete
(
$uri
);
}
}
...
...
core/modules/system/config/system.performance.yml
View file @
871e6bd2
...
...
@@ -5,5 +5,6 @@ cache:
preprocess
:
css
:
'
0'
js
:
'
0'
stale_file_threshold
:
'
2592000'
response
:
gzip
:
'
0'
core/modules/system/system.install
View file @
871e6bd2
...
...
@@ -1909,6 +1909,7 @@ function system_update_8017() {
'page_compression'
=>
'response.gzip'
,
'preprocess_css'
=>
'preprocess.css'
,
'preprocess_js'
=>
'preprocess.js'
,
'stale_file_threshold'
=>
'preprocess.stale_file_threshold'
,
));
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment