From 5d96de9bd1725b27dfb7a41e1bb59b9484b193df Mon Sep 17 00:00:00 2001 From: Azalea <22280294+hykilpikonna@users.noreply.github.com> Date: Tue, 10 Mar 2026 18:12:07 -0400 Subject: [PATCH] [+] NOCACHE option --- utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils.py b/utils.py index 15a9e13..5e82427 100644 --- a/utils.py +++ b/utils.py @@ -1,3 +1,4 @@ +import os import json import hashlib import tomllib @@ -27,7 +28,7 @@ def _disk_cache_decorator(subdir_name: str, ext: str, read_func, write_func, sho cache_p = Path(__file__).parent / 'data' / subdir_name / f"{key}{ext}" - if cache_p.is_file(): + if cache_p.is_file() and not os.getenv("NOCACHE"): try: return read_func(cache_p) except Exception: