Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-21552

"cache" service returns inconsistent result

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • Customer request
    • 2013.4, 2013.05, 2013.06, 5.1
    • None
    • None

    Description

      When HttpCache is enabled, retrieving the persistence cache object returns incorrect data (eZPublishCache object)

      As documented for 5.1 in https://confluence.ez.no/display/EZP51/Persistence+cache , it is possible to access the persistent cache service using:

      /** @var $cacheService \Tedivm\StashBundle\Service\CacheService */
      $cacheService = $container->get( 'cache' );
      

      This works well, until the HttpCache kernel is used; in index.php:

      $kernel = new EzPublishCache( $kernel );

      Now, requesting the same object from the container returns an instance of 'EzPublishCache' instead.

      I was able to retrieve the correct object by using $this->container->get( 'stash.default_cache' ); , with 'default' being the service name.

      Attachments

        Activity

          People

            Unassigned Unassigned
            joao.inacio-obsolete@ez.no Joao Inacio (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: