Source for file update_cron.php
Documentation is available at update_cron.php
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* This is a CRON script which should be called from the command-line, not the
* web. For example something like:
* /usr/bin/php /path/to/site/cli/update_cron.php
// Set flag that this is a parent file.
require_once dirname(__DIR__
) .
'/defines.php';
define('JPATH_BASE', dirname(__DIR__
));
require_once JPATH_BASE .
'/includes/defines.php';
require_once JPATH_LIBRARIES .
'/import.legacy.php';
require_once JPATH_LIBRARIES .
'/cms.php';
// Load the configuration
require_once JPATH_CONFIGURATION .
'/configuration.php';
* This script will fetch the update information for all extensions and store
* them in the database, speeding up your administrator.
* Entry point for the script
// Get the update cache time
$params =
$component->params;
$cache_timeout =
$params->get('cachetimeout', 6, 'int');
$cache_timeout =
3600 *
$cache_timeout;
$this->out('Fetching updates...');
$updater->findUpdates(0, $cache_timeout);
$this->out('Finished fetching updates');
Documentation generated on Tue, 19 Nov 2013 15:16:13 +0100 by phpDocumentor 1.4.3