Browse Source

[FileCache] Do not delete .gitkeep

This commit reduces the chance of accidentally removing the cache
folder from repository.
logmanoriginal 7 years ago
parent
commit
1d26c7f1c3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      caches/FileCache.php

+ 1 - 1
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)