Currently I have this on
framework.cache:
app: cache.adapter.redis
default_redis_provider: redis://localhost
doctrine.orm:
metadata_cache_driver: redis
result_cache_driver: redis
query_cache_driver: redis
Sure, it doesn’t work, but I have no idea what to even try now. Doing type: pool, pool: cache.app works perfect on Symfony 5/6, but it doesn’t do anything on Symfony 3.4, anyone have any ideas?
2
Answers
Sooo 5 mins after posting I have the answer, everything was in prod/doctrine.yaml...
doctrine.orm:
framework.cache:
services:
Bonus edit. How to provide custom namespace:
Create a pool service services:doctrine.cache_pool:
Then use it in a definition for doctrine.system_cache_provider '@doctrine.system_cache_pool' => '@doctrine.cache_pool'.
This works for me and maybe will be helpful for you too:
config/packages/cache.yaml
config/packages/prod/doctrine.yaml