X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FVersionCheck.php;h=204e5e34430ba9c9116e528210c77ea32692d494;hb=0eb2bbdf160755a461eba8248e7472dceba0e57a;hp=6cd1507bd69c5a411f1040c69ff325c074128107;hpb=9204f0a4f2ddc07322a3645a152c2a20f3d47f90;p=civicrm-core.git diff --git a/CRM/Utils/VersionCheck.php b/CRM/Utils/VersionCheck.php index 6cd1507bd6..204e5e3443 100644 --- a/CRM/Utils/VersionCheck.php +++ b/CRM/Utils/VersionCheck.php @@ -33,7 +33,7 @@ class CRM_Utils_VersionCheck { const CACHEFILE_NAME = 'version-info-cache.json', - // after this length of time we fall back on poor-man's cron (7+ days) + // After which length of time we expire the cached version info (7+ days). CACHEFILE_EXPIRE = 605000; /** @@ -70,7 +70,7 @@ class CRM_Utils_VersionCheck { /** * @var string */ - public $pingbackUrl = 'http://latest.civicrm.org/stable.php?format=json'; + public $pingbackUrl = 'https://latest.civicrm.org/stable.php?format=json'; /** * Pingback params @@ -106,7 +106,7 @@ class CRM_Utils_VersionCheck { // Populate remote $versionInfo from cache file $this->isInfoAvailable = $this->readCacheFile(); - // Poor-man's cron fallback if scheduled job is enabled but has failed to run + // Fallback if scheduled job is enabled but has failed to run. $expiryTime = time() - self::CACHEFILE_EXPIRE; if (!empty($this->cronJob['is_active']) && (!$this->isInfoAvailable || filemtime($this->cacheFile) < $expiryTime)