diff --git a/config/packages/framework.yaml b/config/packages/framework.yaml index 9737c92a5..95d9df719 100644 --- a/config/packages/framework.yaml +++ b/config/packages/framework.yaml @@ -1,20 +1,18 @@ parameters: env(APP_LOCALE): en locale: '%env(resolve:APP_LOCALE)%' + env(MEMCACHED_DSN): 'memcached://localhost:11211' framework: ide: 'phpstorm://open?file=%%f&line=%%l' cache: pools: doctrine.result_cache_pool: - adapters: - # - cache.adapter.apcu - - cache.adapter.array + adapter: cache.adapter.memcached + provider: "%env(MEMCACHED_DSN)%" doctrine.system_cache_pool: - adapters: - - cache.adapter.array - # adapter: cache.adapter.memcached - # provider: 'memcached://localhost' + adapter: cache.adapter.memcached + provider: "%env(MEMCACHED_DSN)%" esi: { enabled: true } translator: fallbacks: ["%locale%"] diff --git a/etc/docker/.env.dist b/etc/docker/.env.dist index cf4150738..bde701162 100644 --- a/etc/docker/.env.dist +++ b/etc/docker/.env.dist @@ -32,4 +32,5 @@ TEST_ENV=doctrine JWT_PASSPHRASE= EXTERNAL_OAUTH_CLIENT_ID= EXTERNAL_OAUTH_CLIENT_SECRET= -EXTERNAL_OAUTH_BASE_URL= \ No newline at end of file +EXTERNAL_OAUTH_BASE_URL= +MEMCACHED_DSN=memcached://memcached:11211 \ No newline at end of file diff --git a/etc/docker/.env.example b/etc/docker/.env.example index 79d62fbb1..4bec92189 100644 --- a/etc/docker/.env.example +++ b/etc/docker/.env.example @@ -54,3 +54,4 @@ PUBLIC_SUFFIX_LIST_FILENAME=public_suffix_list.dat #SLUG_REGEX= ###> symfony/messenger ### MESSENGER_TRANSPORT_DSN=amqp://guest:guest@rabbitmq:5672/%2f/messages +MEMCACHED_DSN=memcached://memcached:11211