I'm trying to clear the cache of my site when a certain button is pressed. I have put the following in an if statement however I keep getting stuck in an infinite loop. Not sure why? Here's what I'm echoing within my if statement:
echo "<meta http-equiv=\"refresh\" content=\"0; mywebsitetest.org/ \" />";
echo "<meta http-equiv=\"pragma\" content=\"no-cache\">";
echo "<script type=" . "text/javascript" . ">";
echo "window.location.replace('mywebsitetest.org') </script>";
Thanks in advance.