R
R
Roberto2018-12-30 22:29:58
Nginx
Roberto, 2018-12-30 22:29:58

How to fix the caching issue?

All with the coming! :)
I set up fastcgi caching in nginx, but from time to time errors like "cache file "/var/cache/nginx/....... has too long header" appear in the logs. I didn't find anything useful in Google, but as I understand it, you need to set the value for fastcgi_buffer_size?
And how to calculate it correctly? Or, by typing, constantly reload and check the logs?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor Vorotnev, 2019-01-03
@HeadOnFire

If cache file has too long header, then what does fastcgi_buffer_size have to do with it? This parameter is used when reading the response from the fastcgi server, and the cache file is read by nginx itself, without the participation of an external fastcgi.
You didn't show the config, so I guess that your cache is configured via proxy_cache_path /cache/... and so on. So you need to increase proxy_buffer_size .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question