cachecontrol icon indicating copy to clipboard operation
cachecontrol copied to clipboard

Is there any method for clear whole cache?

Open MasterSergius opened this issue 5 years ago • 1 comments

Hi, I'd like to do the following:

cached_sess.clear_cache()

Is there anything which can help to do this? Or it should be considered as a new feature?

MasterSergius avatar Dec 17 '20 13:12 MasterSergius

If you're using the default cache then you can to do this

for adapter in session.adapters:
    adapter.cache.data = {}

OrangeDog avatar Jun 24 '21 13:06 OrangeDog