Commit 67ea4eab authored by AUTOMATIC1111's avatar AUTOMATIC1111

fix cache loading wrong entries from old cache files

parent ace0c783
......@@ -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
......
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