diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-07-16 10:46:33 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2023-07-16 10:46:33 +0000 |
commit | 67ea4eabc3e78c4b496a9fcd21aca95fd5ef7027 (patch) | |
tree | f5499fe25753ced5647ac221d503f104e60fdd10 /modules/cache.py | |
parent | ace0c78373a51ddbc5207d088b7d08b4a0070644 (diff) | |
download | stable-diffusion-webui-gfx803-67ea4eabc3e78c4b496a9fcd21aca95fd5ef7027.tar.gz stable-diffusion-webui-gfx803-67ea4eabc3e78c4b496a9fcd21aca95fd5ef7027.tar.bz2 stable-diffusion-webui-gfx803-67ea4eabc3e78c4b496a9fcd21aca95fd5ef7027.zip |
fix cache loading wrong entries from old cache files
Diffstat (limited to 'modules/cache.py')
-rw-r--r-- | modules/cache.py | 2 |
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
|