diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-08-10 13:45:44 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-10 13:45:44 +0000 |
commit | 40ccd26b199d5bd5f6cb010733182c9d2cd79049 (patch) | |
tree | 0e50f18c895e78992fb7e055dd74077137718114 | |
parent | 942d7a118a52e2ada0ab00259f5794a4c2b5f5ac (diff) | |
parent | 386202895f875981accd16ad3ff45d0df24409e7 (diff) | |
download | stable-diffusion-webui-gfx803-40ccd26b199d5bd5f6cb010733182c9d2cd79049.tar.gz stable-diffusion-webui-gfx803-40ccd26b199d5bd5f6cb010733182c9d2cd79049.tar.bz2 stable-diffusion-webui-gfx803-40ccd26b199d5bd5f6cb010733182c9d2cd79049.zip |
Merge pull request #12450 from catboxanon/cache-file
Add env var for cache file
-rw-r--r-- | modules/cache.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/cache.py b/modules/cache.py index 71fe6302..a7cd3aeb 100644 --- a/modules/cache.py +++ b/modules/cache.py @@ -1,11 +1,12 @@ import json
+import os
import os.path
import threading
import time
from modules.paths import data_path, script_path
-cache_filename = os.path.join(data_path, "cache.json")
+cache_filename = os.environ.get('SD_WEBUI_CACHE_FILE', os.path.join(data_path, "cache.json"))
cache_data = None
cache_lock = threading.Lock()
|