Using FastCGI Cache with Affiliate tracking software (lots of query strings)


#1

I just realized that my FastCGI caching may be rendered useless…

We are using affiliate tracking on our site (powered by EasyEngine). So 99% of our hits to the site include query strings in the URL.

/?affilate_id=123456

I know that the server config says to bypass cache if there’s a query string in the URL.

So does this mean that FastCGI cache is rendered useless? I think we still need some sort of caching mechanism to handle traffic spikes and heavy traffic days. Is this possible with W3TC or WP Super Cache?


#2

You can cache the site including quueries,
There will be cache for each query.

add following in your sites nginx conf.

  
if ( $arg_affilate_id != "" ) {   
     	 set $skip_cache 0;  
}  

Ignore query parameters with fastcgi cache
#3