Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caching of the repository index/db #7

Open
mdujava opened this issue Apr 6, 2024 · 1 comment
Open

Caching of the repository index/db #7

mdujava opened this issue Apr 6, 2024 · 1 comment

Comments

@mdujava
Copy link

mdujava commented Apr 6, 2024

Describe the issue you are having

When using this list for caching Linux distributions (e.g. Arch linux) database of the repos (core.db, extra.db...) are cached and served with the same retention as packages.

Is there a way to lower retention for those kind of files, as I use it for my devices and vms that are running same systems. No new updates are possible without removing the cached db files and restarting the lancache.

Describe your setup?

Deployed via docker-compose, env file contains CACHE_DOMAINS_REPO and CACHE_DOMAINS_BRANCH pointing to this repo

Are you running sniproxy

Not relevant

DNS Configuration

default from docker-compose

  ports:
    - ${DNS_BIND_IP}:53:53/udp
    - ${DNS_BIND_IP}:53:53/tcp
@mdujava
Copy link
Author

mdujava commented Apr 12, 2024

Workaround is to BYPASS the download once to get new content into the cache, it can be done with for I in core extra community multilib ...; do curl -o /dev/null http://fqdn/archlinux/${I}/os/x86_64/${I}.db?nocache=1; done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant