On Fri, Jul 16, 2010 at 2:15 PM, Sullivan, James (NIH/CIT) [C] <[email protected]> wrote: > Howdy, >
Hi! > [snip] > > I believe clear_stats.php is what should work since it is described as > "Resets statistics in the Special:Statistics page", which sounds like exactly > what I need, yet nothing happens when I run it. In the script it says it > removes all statistics tracking from memcached, which is probably not the > same as resetting the values to 0. > clear_stats.php is only useful for Memcached. Slightly counter-intuitive I'm sure :) > The initStats.php is described within the script as "re-initialize or update > the site statistics table", which I assume means to flush the cache to update > the table. So this probably is not what I need either. > No. initStats.php is designed to rebuild it and recount it. > Anyone know of a way to reset the statistics to 0? I guess I could go into > the DB and do it manually, but I'd rather avoid that if possible. > The only way to *reset* them to 0 (as in, you don't want any of your current pages counted, etc) would be to update the site_stats table and set all the values (there's only 1 row) to 0. Note that deleting the row would make it regenerate all the stats, not force them to recount, so you have to set the numbers to 0. -Chad _______________________________________________ MediaWiki-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
