How to disable Fast CGI Cache for specific page?

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,

Check wordpress.tpl for example:

fastcgi.conf allready contains the skip to by pass

solved by using your tips.
open /home/admin/conf/web/ and add bellow with path.

if ($request_uri ~* "/admin/*") {
   set $no_cache 1;

thank you,


Will get overwritten each update / rebuild

It is better to change it in the template file

1 Like

ohh, thank you brother… :slightly_smiling_face:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.