Files
e-ticket/config/packages/cache.yaml
Serreau Jovann e4edc76f58 Add Redis cache for Meilisearch search results and admin dashboard stats
- Configure Redis DB 2 as Symfony cache adapter
- Cache Meilisearch search results for 5 minutes (invalidated on writes)
- Cache admin dashboard stats for 10 minutes
- Add invalidateSearchCache() called after each Meilisearch write
- Update tests to support cache mock injection

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 10:24:35 +01:00

20 lines
508 B
YAML

framework:
cache:
app: cache.adapter.redis
default_redis_provider: '%env(REDIS_CACHE_DSN)%'
pools:
siret.cache:
adapter: cache.app
default_lifetime: 86400
meilisearch.cache:
adapter: cache.app
default_lifetime: 300
stats.cache:
adapter: cache.app
default_lifetime: 600
when@test:
framework:
cache:
app: cache.adapter.array