public function send() { //$cache_file = sprintf('/tmp/http_cache_%s', md5($this->_url)); $cache_file = '/tmp/http_cache_imdb'; if (file_exists($cache_file)) { return file_get_contents($cache_file); } $response = parent::send(); file_put_contents($cache_file, $response); return $response; }