davideisinger.com

My personal website
Log | Files | Refs | README

commit c41e908ed58c3665f47646438ed5c8b583228d35
parent a0a120b31e467d6741d94e1eb4a2e7603e31ce71
Author: David Eisinger <[email protected]>
Date:   Thu,  9 Apr 2026 00:26:36 -0400

Fix cache key error

Diffstat:
Mbin/dither/dither.rb | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

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