12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- define('INSTALLDIR', realpath(dirname(__FILE__) . '/../../..'));
- $helptext = <<<END_OF_UPDATECOUNTS_HELP
- updatecounts.php [options]
- Update the notice and user counts cached in the database.
- END_OF_UPDATECOUNTS_HELP;
- require_once INSTALLDIR.'/scripts/commandline.inc';
- $userCounts = Sitemap_user_count::getAll();
- $noticeCounts = Sitemap_notice_count::getAll();
- echo "Done.\n";
|