Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/task/cache/sfCacheClearTask.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ protected function execute($arguments = array(), $options = array())
}

// finder to find directories (1 level) in a directory
$dirFinder = sfFinder::type('dir')->discard('.sf')->maxdepth(0)->relative();
$dirFinder = sfFinder::type('dir')->discard('.*')->maxdepth(0)->relative();

// iterate through applications
$apps = null === $options['app'] ? $dirFinder->in(sfConfig::get('sf_apps_dir')) : array($options['app']);
Expand Down Expand Up @@ -125,7 +125,7 @@ protected function execute($arguments = array(), $options = array())
// clear global cache
if (null === $options['app'] && 'all' == $options['type'])
{
$this->getFilesystem()->remove(sfFinder::type('file')->discard('.sf')->in(sfConfig::get('sf_cache_dir')));
$this->getFilesystem()->remove(sfFinder::type('file')->discard('.*')->in(sfConfig::get('sf_cache_dir')));
}
}

Expand All @@ -150,7 +150,7 @@ protected function clearConfigCache(sfApplicationConfiguration $appConfiguration
if (is_dir($subDir))
{
// remove cache files
$this->getFilesystem()->remove(sfFinder::type('file')->discard('.sf')->in($subDir));
$this->getFilesystem()->remove(sfFinder::type('file')->discard('.*')->in($subDir));
}
}

Expand Down Expand Up @@ -191,7 +191,7 @@ protected function clearModuleCache(sfApplicationConfiguration $appConfiguration
if (is_dir($subDir))
{
// remove cache files
$this->getFilesystem()->remove(sfFinder::type('file')->discard('.sf')->in($subDir));
$this->getFilesystem()->remove(sfFinder::type('file')->discard('.*')->in($subDir));
}
}

Expand Down