Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Sympa
Commits
25cfaffc
Unverified
Commit
25cfaffc
authored
Dec 17, 2018
by
IKEDA Soji
Committed by
GitHub
Dec 17, 2018
Browse files
Merge pull request #498 from ikedas/expire_outdated_css by ikedas
WWSympa: Older CSS files would be cleared
parents
197add46
2a3aa15f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/Sympa/WWW/Tools.pm
View file @
25cfaffc
...
...
@@ -923,6 +923,15 @@ sub _get_css_url {
# Set mtime of source template to detect update of it.
utime
$template_mtime
,
$template_mtime
,
$path
;
# Expire old files.
foreach
my
$file
(
<
$path
.*>
)
{
next
unless
0
==
index
(
$file
,
$path
)
and
substr
(
$file
,
length
$path
)
=~
/\A[.]\d+\z/
and
-
f
$file
;
unlink
$file
;
}
return
(
$url
,
$hash
);
}
...
...
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