From 1d26c7f1c3a5adbf223431c4560beea429ffa820 Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Sat, 18 Feb 2017 10:23:46 +0100 Subject: [PATCH] [FileCache] Do not delete .gitkeep This commit reduces the chance of accidentally removing the cache folder from repository. --- caches/FileCache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caches/FileCache.php b/caches/FileCache.php index c8e49821..67078eb2 100644 --- a/caches/FileCache.php +++ b/caches/FileCache.php @@ -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)