mirror of
https://github.com/lbgos/rift-s-linux.git
synced 2026-10-22 07:01:10 +02:00
cached_version only returned a hit when the cached value was Some, so failures recomputed every snapshot poll despite the minute-cache claim. It also served the previous runtime's driver hash for up to 60 s after a restart. Replace the generic helper with a PID-keyed cache mirroring steam_version: same-PID results (including None) are cached for 60 s and any PID change forces recompute. Pass the PID into the uncached probe to avoid a second pgrep per poll.