I want to create a specialized function that check certain parameters (page requested, ip of user against a list), if the user matches he will be redirected to a different site, if he doesn't match he will be allowed to continue to the original requested page.
However the website is cached using W3TC Page Cache, and I can't seem to locate the place where I should put my code to act before W3TC returns the cached page.