Skip to content

Commit

Permalink
Fixed EZEE-1864: Set ezpublish.cache_pool Service to be lazy (#2305)
Browse files Browse the repository at this point in the history
When building Symfony DI Container, CachePool is created from factory
prior to setting SiteAccess-aware context, however it depends on
SA setting for Persistence Cache Service (Filesystem, Redis, Memcached)
  • Loading branch information
alongosz authored and andrerom committed Apr 11, 2018
1 parent 7344524 commit 76dae49
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions eZ/Bundle/EzPublishCoreBundle/Resources/config/cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ services:
# in Core configuration, see eZ/Publish/Core/settings/storage_engines/cache.yml for details
ezpublish.cache_pool:
class: "%ezpublish.cache_pool.class%"
lazy: true
factory: ["@ezpublish.cache_pool.factory", getCachePool]
arguments: ["@ezpublish.config.resolver"]

Expand Down

0 comments on commit 76dae49

Please sign in to comment.