Answer the question
In order to leave comments, you need to log in
Why is nginx caching not working?
Hello everyone, I installed an SSD, I want to cache video there to relieve the load from the HDD.
added
proxy_cache_path /media/ssd_cache/cached inactive=12h levels=1:2:2 keys_zone=local_cache:50m max_size=50g
in config in http{} section ;
in the location specified the name of the cache, etc., but the files are not cached, no cache files appear in the specified folder, for example, and the load on the disk is growing
Answer the question
In order to leave comments, you need to log in
Well, why would he cache something? proxy_cache
only works for proxy_pass
, but here it is not. And for local files, the developers reasonably decided that you yourself can shift them where necessary.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question