Doctrine Common
  1. Doctrine Common
  2. DCOM-240

FileCacheReader requires write access, even when it isn't writing

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Caching
    • Labels:

      Description

      Within the constructor of Doctrine\Common\Annotations\FileCacheReader, it checks if the $cacheDir is writable, and if not, it throws an exception.
      As this class performs read and write operations, it makes sense to only perform that check when it needs to write, maybe as part of the saveCacheFile method.

      We are warming all parts of our cache during application build process, so on production servers we have no writable directories, this code means that can't happen.

        Activity

        Show
        Chris Sedlmayr added a comment - Fixed by https://github.com/doctrine/annotations/pull/30

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Chris Sedlmayr
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: