aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-07-16 13:46:33 +0300
committerAUTOMATIC1111 <16777216c@gmail.com>2023-07-16 13:46:33 +0300
commit67ea4eabc3e78c4b496a9fcd21aca95fd5ef7027 (patch)
treef5499fe25753ced5647ac221d503f104e60fdd10 /modules
parentace0c78373a51ddbc5207d088b7d08b4a0070644 (diff)
fix cache loading wrong entries from old cache files
Diffstat (limited to 'modules')
-rw-r--r--modules/cache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/cache.py b/modules/cache.py
index 28d42a8c..ddf44637 100644
--- a/modules/cache.py
+++ b/modules/cache.py
@@ -84,7 +84,7 @@ def cached_data_for_file(subsection, title, filename, func):
if ondisk_mtime > cached_mtime:
entry = None
- if not entry:
+ if not entry or 'value' not in entry:
value = func()
if value is None:
return None