fsockopen / fgets very slow in PHP

Posted by & filed under Programming.

I’ve been using a PHP class in a project that pulls a URL and then caches the result so it doesn’t have to get loaded again until it’s considered stale. Works pretty well, but every time it went out to get a fresh copy of a page it took forever. I was using fsockopen and… Read more »