Changeset 2517:9318c6f7e9a8
- Timestamp:
- 11/07/13 07:51:56 (10 years ago)
- Branch:
- 2.6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/core/class.dc.update.php
r1280 r2517 55 55 * 56 56 * @param version string Current version to compare 57 * @param nocache boolean Force checking 57 58 * @return string Latest version if available 58 59 */ 59 public function check($version )60 { 61 $this->getVersionInfo( );60 public function check($version, $nocache=false) 61 { 62 $this->getVersionInfo($nocache); 62 63 $v = $this->getVersion(); 63 64 if ($v && version_compare($version,$v,'<')) { … … 68 69 } 69 70 70 public function getVersionInfo( )71 public function getVersionInfo($nocache=false) 71 72 { 72 73 # Check cached file 73 if (is_readable($this->cache_file) && filemtime($this->cache_file) > strtotime($this->cache_ttl) )74 if (is_readable($this->cache_file) && filemtime($this->cache_file) > strtotime($this->cache_ttl) && !$nocache) 74 75 { 75 76 $c = @file_get_contents($this->cache_file);
Note: See TracChangeset
for help on using the changeset viewer.