I have a home page as index.php and it gives a list of 10 items/ products.
Now, I am using the same page as landing page for inward traffic from facebook.
The url looks like index.php?productID=Q231 This page displays the product carrying the specified ID only.
I am aware of PHP output caching but I am new. I have learned that if I cache index.php, it will serve the same cached file to all the inward traffic from facebook.
- Is my understanding correct? I have searched a lot about this but i am not clear as to how would one go about caching with this instance.
- Is there a a way to skip or bypass the server cache file/caching if there's a query string in the url?
I would greatly appreciate if anyone could give me some pointers.
if i'm not mistaken caching is not based on referrer. Internal php caching is only to optimize code, it will not cache, as ie. 'external' caching systems, like inbuild caching in smarty for example, output. I think you'd only need to 'disable' caching for browsers, which will mean, send the proper headers with
header(...)