I am using file_get_contents through proxy to fetch a webpage. This setup was working fine for a good time now but since yesterday it started producing weird results.
The output of the file_get_contents function is an outdated page. If I change the proxy I get either a phpinfo page or a printed array of all the initialized variables in php, both of the server I connect to – result depending on the proxy.
Is there a caching problem in my server or a caching problem in the proxy. Is it possible that their server is responsible.
Also, accessing the page directly or through a web proxy does not suffer from the above problems.
the proxy is most likely caching the page. file_get_contents() is a simple get source and store in memory function, it isnt cached. I know squid proxy has numerous settings for caching, but you’d have to detail your proxy setup for any further help