From actionmystique at gmail.com Sat Apr 19 09:26:22 2025 From: actionmystique at gmail.com (jean-christophe manciot) Date: Sat, 19 Apr 2025 09:26:22 -0000 Subject: Cloning the cache folder Message-ID: Hi everyone, I'm trying to find the most appropriate way to clone a live cache folder to another host. in /etc/cgitrc, I have: cache-size=100000 cache-about-ttl=60 cache-dynamic-ttl=60 cache-repo-ttl=60 cache-root-ttl=60 cache-scanrc-ttl=60 cache-snapshot-ttl=60 cache-static-ttl=60 The destination host has the same cgit config. If I clone the cache folder with this config, I suspect I will find some stale cache files on the cloned host. So I tried to disable the cache on the source host with: cache-size=0 But when I list the folder, I discover a bunch of lock files which are all much older that 1 hour. They must come from previous host shutdowns, 1. Is it safe to delete all remaining old lock files and clone the folder? 2. If I enable the cache on the destination host, will it be able to function correctly? -- Jean-Christophe