Skip to content

Commit

Permalink
Merge pull request #1252 from superdesk/SWP-2276
Browse files Browse the repository at this point in the history
Use memcached as case adapter
  • Loading branch information
IvanJelicSF authored Feb 29, 2024
2 parents f8694df + 0faba1d commit c82ffc8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 5 additions & 7 deletions config/packages/framework.yaml
Original file line number Diff line number Diff line change
@@ -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%"]
Expand Down
3 changes: 2 additions & 1 deletion etc/docker/.env.dist
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,5 @@ TEST_ENV=doctrine
JWT_PASSPHRASE=
EXTERNAL_OAUTH_CLIENT_ID=
EXTERNAL_OAUTH_CLIENT_SECRET=
EXTERNAL_OAUTH_BASE_URL=
EXTERNAL_OAUTH_BASE_URL=
MEMCACHED_DSN=memcached://memcached:11211
1 change: 1 addition & 0 deletions etc/docker/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c82ffc8

Please sign in to comment.