- 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>
20 lines
508 B
YAML
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
|