X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FVersionCheck.php;h=2c8cbd9cc4c46613f8a37e31d32cc913df09365e;hb=ee128a6c5aeede94936e6db227d178af3d712ead;hp=2abd563bc2f69d9af1f81534673a4031054ae14e;hpb=742c1119d73a4ea6cb5218fd38dc7f1e7dd4fa98;p=civicrm-core.git diff --git a/CRM/Utils/VersionCheck.php b/CRM/Utils/VersionCheck.php index 2abd563bc2..2c8cbd9cc4 100644 --- a/CRM/Utils/VersionCheck.php +++ b/CRM/Utils/VersionCheck.php @@ -335,6 +335,15 @@ class CRM_Utils_VersionCheck { } } + /** + * Removes cached version info. + */ + public function flushCache() { + if (file_exists($this->cacheFile)) { + unlink($this->cacheFile); + } + } + /** * Lookup version_check scheduled job */