Doctrine Common
  1. Doctrine Common
  2. DCOM-238

FileCache does not remove directories on flush

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Caching
    • Labels:
      None
    • Environment:
      Windows 7

      Description

      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.

        Activity

        Show
        Marco Pivetta added a comment - This is likely because of the iterator skipping directories: https://github.com/doctrine/cache/blob/36c4eee5051629524389da376ba270f15765e49f/lib/Doctrine/Common/Cache/FileCache.php#L120-L122

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Ryan Korczykowski
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: