Re: RE: Add files to cache manually

2021-05-21 Thread foobug
> Is there a reason why you need nginx "cache" instead of just storing the files statically? I don't have a big enough disk to store *all* user uploaded files accumulated over the years. So I need some way to manage a pool of space to store hot uploads. > One way would be instead of using the ca

RE: Add files to cache manually

2021-05-21 Thread Reinis Rozitis
> One option is to keep a copy of the file on disk (outside of the nginx cache). Then use something like try_files to read it, and have that response be cached by nginx. But then I end up with 2 of the files on disk (one in my try_files directory, and one in the nginx cache). I also need to manuall