Last modified: 2014-02-12 23:32:45 UTC
The initStats.php maintenance script has a confusing help message. 1. It gives this description of the "noviews" option: --noviews: Don't update the page view counter The phrase "Don't update" is ambiguous, sounding like the page view counter will be left alone. In fact, it sets the page view counter to zero, according to showStats.php. Perhaps the help message should really be, "Do not calculate Total Views: set its value in the cache to zero." 2. The description of the "update" option is: --update: Update the existing statistics (preserves the ss_total_views field) How is this different from the default behavior when initStats.php is invoked WITHOUT the --update option? To my eye (as an end-user, not reading the SiteStatsInit source code), it also seems to update the existing statistics and preserve the ss_total_views field. Is there a better way to explain what $counter->update() vs. the default $counter->refresh() does?