1
0
Fork 0
forked from blallo/rss-bridge

[FileCache] Do not delete .gitkeep

This commit reduces the chance of accidentally removing the cache
folder from repository.
This commit is contained in:
logmanoriginal 2017-02-18 10:23:46 +01:00
parent 790bd17d41
commit 1d26c7f1c3

View file

@ -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)