docs cache key

This commit is contained in:
Will McGugan
2022-11-06 16:56:51 +00:00
parent 248cbeaa83
commit 92b5d06e25

View File

@@ -85,6 +85,7 @@ def take_svg_screenshot(
for path in file_paths: for path in file_paths:
with open(path, "rb") as source_file: with open(path, "rb") as source_file:
hash.update(source_file.read()) hash.update(source_file.read())
hash.update(f"{press}-{title}-{terminal_size}".encode("utf-8"))
cache_key = f"{hash.hexdigest()}.svg" cache_key = f"{hash.hexdigest()}.svg"
return cache_key return cache_key