Details
-
Bug
-
Resolution: Fixed
-
Medium
-
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.