mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-22 23:31:29 +00:00
expire_cached_files: check for glob() returning false
This commit is contained in:
@@ -1369,6 +1369,7 @@
|
||||
if (is_writable($cache_dir)) {
|
||||
$files = glob("$cache_dir/*");
|
||||
|
||||
if ($files)
|
||||
foreach ($files as $file) {
|
||||
if (time() - filemtime($file) > 86400*7) {
|
||||
unlink($file);
|
||||
|
||||
Reference in New Issue
Block a user