gc: don't re-open cache so often

Re-opening the cache every interval (1s by default) causes fsync. Normally that isn't noticeable, but on encrypted ZFS it causes high CPU consumption (even when "idle"). Reported on gitter.

Edited by Vladimír Čunát

Merge request reports

Loading