diff --git a/CRM/Extension/Browser.php b/CRM/Extension/Browser.php index 2d40f687238c..457ced70d779 100644 --- a/CRM/Extension/Browser.php +++ b/CRM/Extension/Browser.php @@ -216,7 +216,7 @@ private function _discoverRemote() { * @return string */ private function grabCachedJson() { - $filename = $this->cacheDir . DIRECTORY_SEPARATOR . self::CACHE_JSON_FILE; + $filename = $this->cacheDir . DIRECTORY_SEPARATOR . self::CACHE_JSON_FILE . '.' . md5($this->getRepositoryUrl()); $json = file_get_contents($filename); if (empty($json)) { $json = $this->grabRemoteJson(); @@ -246,7 +246,7 @@ private function grabRemoteJson() { return array(); } - $filename = $this->cacheDir . DIRECTORY_SEPARATOR . self::CACHE_JSON_FILE; + $filename = $this->cacheDir . DIRECTORY_SEPARATOR . self::CACHE_JSON_FILE . '.' . md5($this->getRepositoryUrl()); $url = $this->getRepositoryUrl() . $this->indexPath; $status = CRM_Utils_HttpClient::singleton()->fetch($url, $filename);