mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-20 00:11:16 +02:00
[FileCache] Do not delete .gitkeep
This commit reduces the chance of accidentally removing the cache folder from repository.
This commit is contained in:
@@ -39,7 +39,7 @@ class FileCache implements CacheInterface {
|
||||
);
|
||||
|
||||
foreach($cacheIterator as $cacheFile){
|
||||
if(in_array($cacheFile->getBasename(), array('.', '..')))
|
||||
if(in_array($cacheFile->getBasename(), array('.', '..', '.gitkeep')))
|
||||
continue;
|
||||
elseif($cacheFile->isFile()){
|
||||
if(filemtime($cacheFile->getPathname()) < time() - $duration)
|
||||
|
Reference in New Issue
Block a user