Welcome! Log In Create A New Profile


Re: RE: Add files to cache manually

May 21, 2021 12:18PM
> 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 cache just store the files as is (in the same structure) with proxy_store

I did not know about proxy_store. But that may come in handy if I have to implement everything myself. Thank you.

> The only drawback in this is that you have to manage the cache directory yourself (delete old files / implement LRU if needed etc), but that's usually not too hard with `find` and works just fine.

Right. The devil is in the detail, which is why I'd prefer to lean on the robustness of nginx. It seems like nginx is 99% there. It is "just" lacking a way to inject an HTTP response into the cache (i.e. a way to warm up the cache).
Subject Author Posted

Add files to cache manually

foobug May 20, 2021 02:42PM

RE: Add files to cache manually

Reinis Rozitis May 21, 2021 07:58AM

Re: RE: Add files to cache manually

foobug May 21, 2021 12:18PM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 76
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready