fix: drop the detection cache on every update

This commit is contained in:
Felitendo committed 2026-09-24 09:47:57 +02:00
1 parent dd0671440d
commit fc9dae95f9
1 file changed
+8 -3
+8 -3
View File
@@ -336,9 +336,14 @@ _mca_stat_batch() {
# below it are keyed on size and mtime, so an entry for a file that has not # below it are keyed on size and mtime, so an entry for a file that has not
# changed is never looked at again. A cache written when a verdict meant # changed is never looked at again. A cache written when a verdict meant
# something else (before an AppImage could come out as anything but "no") # something else (before an AppImage could come out as anything but "no")
# would therefore keep answering the old way forever. Bumping this is how such # would therefore keep answering the old way forever.
# a cache gets dropped instead. #
MCA_CACHE_FORMAT='# middleclick-autoscroll detect 2' # So the version is part of it, and every update drops the cache. The rules
# change far more often than anyone remembers to bump a number by hand: v1.5.3
# taught the hint scan about Discord's launcher, and Discord stayed out of the
# list anyway, because /usr/bin/discord had not changed and its old "no" was
# still in here.
MCA_CACHE_FORMAT="# middleclick-autoscroll detect 2 $MCA_VERSION"
_mca_cache_load() { _mca_cache_load() {
local path stamp verdict first=1 local path stamp verdict first=1