From 869ebb7dc7a5f4241b94512646cdd7ae89e35962 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Fri, 9 Jul 2010 17:50:14 -0400 Subject: script to fill counts table from command line --- plugins/Sitemap/scripts/updatecounts.php | 36 ++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 plugins/Sitemap/scripts/updatecounts.php (limited to 'plugins/Sitemap/scripts/updatecounts.php') diff --git a/plugins/Sitemap/scripts/updatecounts.php b/plugins/Sitemap/scripts/updatecounts.php new file mode 100644 index 000000000..15c986418 --- /dev/null +++ b/plugins/Sitemap/scripts/updatecounts.php @@ -0,0 +1,36 @@ +#!/usr/bin/env php +. + */ + +define('INSTALLDIR', realpath(dirname(__FILE__) . '/../../..')); + +$helptext = << Date: Sat, 10 Jul 2010 09:58:27 -0400 Subject: remove debugging statement and add a bit of output to updatecounts --- plugins/Sitemap/scripts/updatecounts.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/Sitemap/scripts/updatecounts.php') diff --git a/plugins/Sitemap/scripts/updatecounts.php b/plugins/Sitemap/scripts/updatecounts.php index 15c986418..91bc0ac4e 100644 --- a/plugins/Sitemap/scripts/updatecounts.php +++ b/plugins/Sitemap/scripts/updatecounts.php @@ -26,11 +26,11 @@ Update the notice and user counts cached in the database. END_OF_UPDATECOUNTS_HELP; -echo "INSTALLDIR=".INSTALLDIR."\n"; - require_once INSTALLDIR.'/scripts/commandline.inc'; // Will fill the cache $userCounts = Sitemap_user_count::getAll(); $noticeCounts = Sitemap_notice_count::getAll(); + +echo "Done.\n"; -- cgit v1.2.3-54-g00ecf