Set $skip_cache doesn't seem to function


#1

I have this block in my sites-available config…

`set $skip_cache 0;

if ($request_uri ~* “/musicians/|/explore/”) { set $skip_cache 1; }`

This is to avoid caching on the following URLs:

Unfortunately it’s not working and the cache is only cleared when clicking the manual Purge Cache in the admin.


#2

What cache system are you using with ee ? --wpsc ? You should try with --wpredis, it doesn’t make a page cache, so you should not have this issue.


#3

I think its the default fastcgi. In any case, we found the solution was simply to move the code to the wpfc.conf and it works fine!


#4