R
R
rusrich2017-12-26 08:11:21
Nginx
rusrich, 2017-12-26 08:11:21

How to configure caching of the most popular content in RAM in NGINX?

Welcome all.
Can you please tell me how to set up caching of the most popular content in nginx?
An approximate understanding is this:
If the number of requests is greater than, say, 10 per minute, then caching occurs. if less, it is not cached and content is served from disks. You also need to set the content storage time in the cache.
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
RidgeA, 2017-12-26
@RidgeA

0. Mount a piece of RAM to a normal partition
1. In the location where frequently requested content is located, add the proxy_cache directive indicating the zone that will be saved to this partition.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question