To deploy, I 'git pull' then 'bin/console cache:clear' to see the updates to my website.
It works, but I don't want to lose MY cache pool's data when this happens. (I cache results to 3rd party api calls)
I expected the symfony command to clear it's own cache stores only and not the cache items I've submitted since they are still valuable to me after I clear the symfony cache to deploy new code.
Q1: How can I clear all the caches except my app's cache pool 'api_call_cache_pool' below?
Q2: Is there a different cache clear call I should use instead of 'bin/console cache:clear'?
Q3: Would api_call_cache_pool not be cleared if it's adapter was Redis instead of filesystem?
framework:
cache:
directory: '%kernel.cache_dir%/pools'
app: cache.adapter.filesystem
system: cache.adapter.system
pools:
api_call_cache_pool:
adapter: cache.adapter.filesystem
default_lifetime: 6000
tags: true