Skip to content

Commit

Permalink
fix cache loading wrong entries from old cache files
Browse files Browse the repository at this point in the history
  • Loading branch information
AUTOMATIC1111 committed Jul 16, 2023
1 parent ace0c78 commit 67ea4ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 67ea4ea

Please sign in to comment.