From e0dddff176a01d410904b6750b3395de4f7e54db Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Mon, 14 Sep 2026 21:39:00 +0200 Subject: plan 9: keyword cache keys on extension, max-read and Unicode tables, trims removed keywords --- internal/engine/facts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/engine/facts.go') diff --git a/internal/engine/facts.go b/internal/engine/facts.go index 9035245..487604b 100644 --- a/internal/engine/facts.go +++ b/internal/engine/facts.go @@ -212,7 +212,7 @@ func (f *facts) cacheID() (kwcache.ID, bool) { // fileCacheID is file's kwcache.ID. func fileCacheID(file scan.File) kwcache.ID { - return kwcache.ID{Dev: file.Dev, Ino: file.Ino, Size: file.Size, MTime: file.ModTime.UnixNano()} + return kwcache.ID{Dev: file.Dev, Ino: file.Ino, Size: file.Size, MTime: file.ModTime.UnixNano(), Ext: strings.ToLower(filepath.Ext(file.Name))} } // Duplicate resolves dirs against the directory's root, builds (or reuses) -- cgit v1.3