cache: old files didn't contain _
This commit is contained in:
parent
bf9a4e2862
commit
dad6671556
@ -46,7 +46,7 @@ def install_requests_cache() -> Generator:
|
|||||||
cache_file = f'http_cache_{requests_cache.__version__}.sqlite'
|
cache_file = f'http_cache_{requests_cache.__version__}.sqlite'
|
||||||
# delete other versions
|
# delete other versions
|
||||||
for f in os.listdir(cache_dir):
|
for f in os.listdir(cache_dir):
|
||||||
if f.startswith('http_cache_') and f != cache_file:
|
if f.startswith('http_cache') and f != cache_file:
|
||||||
os.remove(os.path.join(cache_dir, f))
|
os.remove(os.path.join(cache_dir, f))
|
||||||
requests_cache.install_cache(
|
requests_cache.install_cache(
|
||||||
always_revalidate=True,
|
always_revalidate=True,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user