Piwik\Plugins\CoreHome\Controller::checkForUpdates PHP Method

checkForUpdates() public method

This will check piwik.org at most once per 10s.
public checkForUpdates ( )
    public function checkForUpdates()
    {
        Piwik::checkUserHasSomeAdminAccess();
        $this->checkTokenInUrl();
        // perform check (but only once every 10s)
        UpdateCheck::check($force = false, UpdateCheck::UI_CLICK_CHECK_INTERVAL);
        $marketplace = StaticContainer::get('Piwik\\Plugins\\Marketplace\\Api\\Client');
        $marketplace->clearAllCacheEntries();
        $view = new View('@CoreHome/checkForUpdates');
        $this->setGeneralVariablesView($view);
        return $view->render();
    }