Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1396

[APC Cache] "clear-cache" commands do not work with cli

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None
    • Environment:
      in php.ini
      apc.enable_cli = 1

      Description

      Commands for clear-cache:result, clear-cache:query, clear-cache:metadata do not work with cli and APC Cache

      Revert some correction not tested by guilhermeblanco by adding

      if ($cacheDriver instanceof \Doctrine\Common\Cache\ApcCache)
      {
          throw new \LogicException("Cannot clear APC Cache from Console, its shared in the Webserver memory and not accessible from the CLI.");
      }
      

        Activity

          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: