Temp files in cache
This commit is contained in:
parent
d22d5230cc
commit
8fa8d4d420
2 changed files with 2 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -5,6 +5,7 @@
|
|||
/app/config/db/*
|
||||
/app/cache/**/*.php
|
||||
/app/cache/**/*.lock
|
||||
/app/cache/**/*.tmp
|
||||
/app/log/*
|
||||
/public/img/avatars/*
|
||||
/public/.htaccess
|
||||
|
|
|
@ -119,7 +119,7 @@ class FileCache implements CacheInterface
|
|||
{
|
||||
$dir = new RecursiveDirectoryIterator($this->cacheDir, RecursiveDirectoryIterator::SKIP_DOTS);
|
||||
$iterator = new RecursiveIteratorIterator($dir);
|
||||
$files = new RegexIterator($iterator, '%\.php$%i', RegexIterator::MATCH);
|
||||
$files = new RegexIterator($iterator, '%\.(?:php|tmp)$%i', RegexIterator::MATCH);
|
||||
$result = true;
|
||||
|
||||
foreach ($files as $file) {
|
||||
|
|
Loading…
Add table
Reference in a new issue