Commit 40ccd26b authored by AUTOMATIC1111's avatar AUTOMATIC1111 Committed by GitHub

Merge pull request #12450 from catboxanon/cache-file

Add env var for cache file
parents 942d7a11 38620289
import json import json
import os
import os.path import os.path
import threading import threading
import time import time
from modules.paths import data_path, script_path 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_data = None
cache_lock = threading.Lock() cache_lock = threading.Lock()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment