Fix cache key error
All checks were successful
Deploy / deploy (push) Successful in 1m33s

This commit is contained in:
David Eisinger
2026-04-09 00:26:36 -04:00
parent a0a120b31e
commit c41e908ed5

View File

@@ -16,11 +16,9 @@ def cache_path_for(path, geometry)
return unless CACHE_DIR return unless CACHE_DIR
source_path = "#{ROOT}/#{path}.enc" source_path = "#{ROOT}/#{path}.enc"
stat = File.stat(source_path)
cache_key = Digest::SHA256.hexdigest([ cache_key = Digest::SHA256.hexdigest([
path, path,
stat.size, Digest::SHA256.file(source_path).hexdigest,
stat.mtime.to_f,
geometry, geometry,
DITHER, DITHER,
FORMAT, FORMAT,