take a command-line argument to start with a particular user ID

darcs-hash:20081114015930-84dde-c2556e2dd409f4c13f9063d77ad15974e6d0f3c4.gz
This commit is contained in:
Evan Prodromou 2008-11-13 20:59:30 -05:00
parent fbb6efb131
commit 8ff424546a

View File

@ -34,9 +34,16 @@ define('LACONICA', true);
require_once(INSTALLDIR . '/lib/common.php'); require_once(INSTALLDIR . '/lib/common.php');
$start_at = ($argc > 1) ? $argv[1] : NULL;
common_log(LOG_INFO, 'Updating user inboxes.'); common_log(LOG_INFO, 'Updating user inboxes.');
$user = new User(); $user = new User();
if ($start_at) {
$user->whereAdd('id >= ' . $start_at);
}
$cnt = $user->find(); $cnt = $user->find();
$cache = common_memcache(); $cache = common_memcache();