Skip to content

Commit

Permalink
EZP-30546: Fix 2.5 regression on cache service not being lazy
Browse files Browse the repository at this point in the history
  • Loading branch information
andrerom committed May 11, 2019
1 parent 8edd08b commit 549a896
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion eZ/Bundle/EzPublishCoreBundle/Resources/config/cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ services:
ezpublish.cache_pool.inner:
# As we support custom TagAware services, we set class as interface here so lazy class is "correct"
class: Symfony\Component\Cache\Adapter\TagAwareAdapterInterface
lazy: true
factory: ["@ezpublish.cache_pool.factory", getCachePool]
arguments: ["@ezpublish.config.resolver"]

Expand Down
1 change: 1 addition & 0 deletions eZ/Publish/Core/settings/storage_engines/cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ services:
# Setup cache pool, with InMemoryCacheAdapter as decorator
ezpublish.cache_pool:
class: eZ\Publish\Core\Persistence\Cache\Adapter\InMemoryClearingProxyAdapter
lazy: true
arguments:
- "@ezpublish.cache_pool.inner"
- !tagged ez.spi.persistence.cache.inmemory
Expand Down

0 comments on commit 549a896

Please # to comment.