Doctrine Common
  1. Doctrine Common
  2. DCOM-69

[APC Cache] doFlush does not clear user cache

    Details

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

      Description

      lib\Doctrine\Common\Cache\ApcCache.php

      The function "doFlush" only clears opcode cache.
      The user cache is never cleared.

      To correct it, one solution should be :

      protected function doFlush()
      {
          $res = false;    
          $bool1 = apc_clear_cache();
          $bool2 = apc_clear_cache('user');
          if ($bool1 && $bool2)
          {
              $res = true;
          }
          return $res;
      }
      

        Activity

        Show
        Guilherme Blanco added a comment - Fixed in https://github.com/doctrine/common/commit/d6e4c8b22af9800db4fd9d679ce98538da028168

          People

          • Assignee:
            Guilherme Blanco
            Reporter:
            Jérôme Forêt
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: