Quantcast
Channel: Active questions tagged symfony4 - Stack Overflow
Viewing all articles
Browse latest Browse all 3924

I clear the cache after deployment to production but also lose my app cache. How do I exclude my pool while seeing new symfony code updates?

$
0
0

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

Viewing all articles
Browse latest Browse all 3924

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>