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

        Jérôme Forêt created issue -
        Jérôme Forêt made changes -
        Field Original Value New Value
        Description Commands for clear-cache:result, clear-cache:query, clear-cache:metadata do not work with cli and APC Cache 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

        {code}
        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.");
        }
        {code}
        Show
        Guilherme Blanco added a comment - Fixed in https://github.com/doctrine/doctrine2/commit/8efae0b232210b27200f2709e7fcb24c7f02c5de Thanks for the report. =)
        Guilherme Blanco made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Benjamin Eberlei [ beberlei ] Guilherme Blanco [ guilhermeblanco ]
        Resolution Fixed [ 1 ]
        Benjamin Eberlei made changes -
        Workflow jira [ 13048 ] jira-feedback [ 15042 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 15042 ] jira-feedback2 [ 16906 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 16906 ] jira-feedback3 [ 19159 ]

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DDC-1396, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          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: