I have a Symfony application, and I would like to use Redis as a caching system. The default caching system for Symfony out of the box is filesystem caching.
from the documentation I learned there are two named caches in Symfony; cache.app and cache.system so I set both to Redis with the following cache.yaml:
framework:
cache:
# Put the unique name of your app here: the prefix seed
# is used to compute stable namespaces for cache keys.
prefix_seed: myteam/myapp
default_redis_provider: "redis://redis:6379"
# The app cache caches to the filesystem by default.
# Other options include:
# cache.app via Redis
app: cache.adapter.redis
# cache.system also
system: cache.adapter.redis
After doing this, I loaded an example page and monitored the cache folder. I found that files were still being created in the cache folder, even though keys were being created in Redis.
I know that Symfony do not recommend messing with the files that the Kernel creates in the file cache, but even the cache/prod/Containerxxxxx folder was being written to.
What could be caching in the folder that isn't part of app or system? Is there another named cache that I have missed?