Jira issue originally created by user rtek:
FileCache::doFlush() does not remove the directories that store the cache file. The cache file is correctly deleted. This results in hundreds of hanging directories when the cache is flushed / rebuilt.
The version of doctrine/cache is 1.3.0.
Comment created by @ocramius:
This is likely because of the iterator skipping directories: