private function loadJpegUrl($sUrl) { $cacheFile = $this->oJpgAssetCache->getFile($sUrl); // do we already have a cached version of this image? if (!$cacheFile->isCached()) { $iTimeout = $this->oCommonConfig->getInteger('downloader.timeout', 10); $imageLoader = new HttpLoader($sUrl, SteamProfileApp::AGENT, 'Image'); $imageLoader->setTimeout($iTimeout); $imageLoader->setOutputFile($cacheFile->getPath()); $imageLoader->start(); $imageLoader->close(); } return $cacheFile; }