feat: only use hash cache logs for exceptions

This commit is contained in:
Manuel Schmid
2024-07-01 17:59:05 +02:00
parent b19ecf410b
commit df2dd194cc
2 changed files with 3 additions and 3 deletions
+2
View File
@@ -762,12 +762,14 @@ if args_manager.args.rebuild_hash_cache:
from modules.hash_cache import sha256_from_cache
from modules.util import get_file_from_folder_list
print('[Cache] Rebuilding hash cache')
for filename in model_filenames:
filepath = get_file_from_folder_list(filename, paths_checkpoints)
sha256_from_cache(filepath)
for filename in lora_filenames:
filepath = get_file_from_folder_list(filename, paths_loras)
sha256_from_cache(filepath)
print('[Cache] Done')
# write cache to file again for sorting and cleanup of invalid cache entries
save_cache_to_file()