Skip to content

Instantly share code, notes, and snippets.

@mikemix
Last active November 11, 2022 19:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikemix/8df70c3b961781b7f3a8ff32c0d0ec81 to your computer and use it in GitHub Desktop.
Save mikemix/8df70c3b961781b7f3a8ff32c0d0ec81 to your computer and use it in GitHub Desktop.
# config/packages/doctrine.yaml
doctrine:
# …
orm:
# …
second_level_cache:
enabled: true
regions:
write_rare:
# expire automatically after 10 days
lifetime: 864000
# let's use app's main cache pool
# (in my case it's using Redis)
cache_driver: { type: service, id: cache.app }
append_only:
# expire automatically after 100 days
lifetime: 8640000
# let's use app's main cache pool
# (in my case it's using Redis)
cache_driver: { type: service, id: cache.app }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment