A
A
Alexander Avtomonov2014-10-29 20:25:23
Nginx
Alexander Avtomonov, 2014-10-29 20:25:23

Is it possible to somehow limit the size of the file cached by nginx?

Enabled caching of static files in nginx using fastcgi_cache. Is it possible to somehow prevent files larger than, say, 10 MB from getting into the cache?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Antony Ryabov, 2014-10-29
@tonymadbrain

what for? if this is the essence of caching? nginx related theme and serving large files

S
sh84, 2014-11-03
@sh84

Answering the previous answerer: for example, in order not to clog the cache with files, about which it is known in advance that they either will not fit into the cache, or do not make up a significant part of the load (and will force out their small brothers with each request).
And as far as I know, there is no such option ..
And directio is about a completely different cache.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question