/** * Obtain update information, as stored in cache * by checkForUpdates * */ public function getUpdatesInfos($forced = false) { // store whether doing a forced check for updates self::$_forced = $forced; // get cache object $cache =& JFactory::getCache('sh404sef_updates'); $cache->setLifetime(86400); // cache result for 24 hours $cache->setCaching(1); // force caching on // empty cache if we are going to look for updates if ($forced) { // clean our cache $cache->clean('sh404sef_updates'); } $response = $cache->call(array('Sh404sefHelperUpdates', '_doCheck')); // find out whether we should update $response = Sh404sefHelperUpdates::_updateRequired($response); // return response, either dummy or from cache return $response; }