take a command-line argument to start with a particular user ID
darcs-hash:20081114015930-84dde-c2556e2dd409f4c13f9063d77ad15974e6d0f3c4.gz
This commit is contained in:
parent
fbb6efb131
commit
8ff424546a
|
@ -34,9 +34,16 @@ define('LACONICA', true);
|
|||
|
||||
require_once(INSTALLDIR . '/lib/common.php');
|
||||
|
||||
$start_at = ($argc > 1) ? $argv[1] : NULL;
|
||||
|
||||
common_log(LOG_INFO, 'Updating user inboxes.');
|
||||
|
||||
$user = new User();
|
||||
|
||||
if ($start_at) {
|
||||
$user->whereAdd('id >= ' . $start_at);
|
||||
}
|
||||
|
||||
$cnt = $user->find();
|
||||
$cache = common_memcache();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user