Skip to content

cache-dir/max-cache-size with local disk back-end #49

Answered by jasonwhite
GertyP asked this question in Q&A
Discussion options

You must be logged in to vote

Your understanding is correct, a cache is pointless and takes up unnecessary space when serving files off of the local disk. However, a case where it can be useful is if you are serving off of a network file system (e.g., from a NAS) or from a FUSE file system (e.g., sshfs). Then, if the network/FUSE file system is slow, using a local cache could potentially speed it up.

You prompted me to go back and look through the code for the local disk backend code and it looks like I never actually implemented caching for it(!). So, even if you specified --cache-dir=<DIR> with the local disk backend, it won't (currently) use it.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by GertyP
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants