hi,
i want to bypass Fast CGI cache for all page that start with /admin
so, how to do this?
i use bellow nginx config but can’t work.
location ~ /admin/* {
fastcgi_cache off;
fastcgi_cache_bypass 1;
fastcgi_no_cache 1;
proxy_no_cache 1;
proxy_cache_bypass 1;
}
thank you,
eris
2
Check wordpress.tpl for example:
fastcgi.conf allready contains the skip to by pass
solved by using your tips.
open /home/admin/conf/web/domain.com/nginx.fastcgi_cache.conf and add bellow with path.
if ($request_uri ~* "/admin/*") {
set $no_cache 1;
}
thank you,
eris
4
/home/admin/conf/web/domain.com/nginx.fastcgi_cache.conf
Will get overwritten each update / rebuild
It is better to change it in the template file
1 Like
system
Closed
6
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.