Nginx fastcgi_cache_background_update Issue/Question
Maxim Dounin
mdounin at mdounin.ru
Fri Apr 27 14:25:15 UTC 2018
Hello!
On Thu, Apr 26, 2018 at 04:56:57PM -0400, c0nw0nk wrote:
> http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_cache_background_update
>
>
> How can I switch between an On and a Off version of this function within a
> Nginx server {
>
>
> set $var 1;
>
> if ($var) {
> fastcgi_cache_background_update On;
> }
>
>
> Is there a way to do this even with Nginx + Lua i can't figure out a
> solution that will allow me to toggle / switch between a On and Off fastcgi
> background update state.
>
> What ever way or methods can be used with Lua especially I would be
> extremely grateful for help with thanks everyone :)
Try using different locations for requests where you need
background update to be on and off.
--
Maxim Dounin
http://mdounin.ru/
More information about the nginx
mailing list