aboutsummaryrefslogtreecommitdiff
path: root/.github/stale.yml
diff options
context:
space:
mode:
authorBozhidar Batsov <bozhidar@toptal.com>2026-04-27 07:58:28 +0000
committerBozhidar Batsov <bozhidar@toptal.com>2026-04-27 07:58:28 +0000
commit28014dae7034fff49f5740b013a426aade7873f3 (patch)
tree5943605789c290b9dbe927520f5cc52527866b58 /.github/stale.yml
parentd8bbeedd275cea4765555c731b265ce7757ad9e5 (diff)
Coalesce idle-timer flushes in projectile-cache-current-fileHEADmaster
Each call to `projectile-cache-current-file' under persistent caching scheduled a fresh 30-second idle timer that closed over a snapshot of the file list at scheduling time. Opening N files in a session queued N timers; once Emacs went idle they all fired and serialized the cache N times, with the earlier ones writing stale (shorter) lists. Maintain a per-project pending timer in `projectile--pending-cache-flush-timers' instead, cancelling and rescheduling on each new file. The fired callback re-reads the current in-memory cache, so the disk write reflects the final state rather than whichever snapshot the last timer captured.
Diffstat (limited to '.github/stale.yml')
0 files changed, 0 insertions, 0 deletions