mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-10-10 22:17:12 +00:00
cleanup cached js and css
This commit is contained in:
1 parent
3f6a2fc7fa
commit
74244c7d0a
3 files changed
+20
No files matched your search
@@ -1612,4 +1612,22 @@ function solr_status() {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function cleanupJS($ignore = '', $folder = '/tmp/*.js') {
|
||||
foreach (glob($folder) as $filename) {
|
||||
if(strpos($filename, $ignore) !== false) {
|
||||
continue;
|
||||
}
|
||||
unlink($filename);
|
||||
}
|
||||
}
|
||||
|
||||
function cleanupCSS($ignore = '', $folder = '/tmp/*.css') {
|
||||
foreach (glob($folder) as $filename) {
|
||||
if(strpos($filename, $ignore) !== false) {
|
||||
continue;
|
||||
}
|
||||
unlink($filename);
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in new issue
Block a user