Stale repository archive after force push - [repository] local cache
0 reputation · 02 Aug 2023, 11:02 UTC
Repository archive cache staleness
Forgejo caches generated repository archives under the local cache path configured by [repository] LOCAL_CACHE_PATH, with expiration controlled by [repository] LOCAL_CACHE_EXPIRATION. The goal is to determine whether the cache is invalidated immediately after a repository history rewrite, mirror synchronization, or deletion, or whether clients can receive a stale archive until the TTL elapses or an operator removes cache files.
No Forgejo-specific API endpoint or per-repository setting is documented for purging a single repository's archive cache on demand. Behavior may differ between Forgejo 1.x LTS and 2.x releases, so version-specific confirmation is required.
Does Forgejo invalidate the repository archive cache immediately after a force push or mirror sync? If not, what triggers removal of a specific repository's cached archive, and does the behavior differ between Forgejo 1.x LTS and 2.x?