Update app.py
This commit is contained in:
@@ -111,6 +111,12 @@ def load_cache():
|
||||
logger.info(f"Loaded cache with {len(KNOWN_EXTERNAL_USERS)} users")
|
||||
except:
|
||||
KNOWN_EXTERNAL_USERS = {}
|
||||
else:
|
||||
# 🔥 neu: Datei initial anlegen
|
||||
os.makedirs(os.path.dirname(CACHE_FILE), exist_ok=True)
|
||||
with open(CACHE_FILE, "w") as f:
|
||||
json.dump({}, f)
|
||||
logger.info("Initialized empty cache file")
|
||||
|
||||
def save_cache():
|
||||
global CACHE_DIRTY
|
||||
|
||||
Reference in New Issue
Block a user