Page MenuHomec4science

079.nametokenindex.php
No OneTemporary

File Metadata

Created
Sun, Jan 5, 09:05

079.nametokenindex.php

<?php
echo "Indexing username tokens for typeaheads...\n";
$table = new PhabricatorUser();
$table->openTransaction();
$table->beginReadLocking();
$users = $table->loadAll();
echo count($users).' users to index';
foreach ($users as $user) {
$user->updateNameTokens();
echo '.';
}
$table->endReadLocking();
$table->saveTransaction();
echo "\nDone.\n";

Event Timeline