[xwiki-users] Reset the stats
Hello, I use a 2.1.2 XWiki XE and the stats are activated. Is it possible to reset the counters of the Stats space ? Don't read anything on this topic in the manual. Thank you for your help. Maxime
Hi Maxime, On 05/31/2010 01:18 PM, GeLo wrote:
Hello,
I use a 2.1.2 XWiki XE and the stats are activated. Is it possible to reset the counters of the Stats space ?
AFAIK there's no API for this purpose and thus no UI. The only thing you can do is to delete the stats records from the database (xwikistatsdoc, xwikistatsreferer and xwikistatsvisit tables). Now, even if you delete the stats recorded for documents in X space (e.g. how many times X.Y page was edited) by deleting the associated records from xwikistatsdoc table, you can't decrease the number of edits made by user A who edited 3 times X.Y page because xwikistatsvisit table contains aggregated visit stats so you don't know how many times A edited pages from X space. Hope this helps, Marius
Don't read anything on this topic in the manual.
Thank you for your help. Maxime _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Thank you for your answer. I realize that my previous message was not very clear. My only need is to reset all the counters (for all spaces). I would mean : the statistic counters as they appear in the space entitled "Stats". So, I will try to delete the content of theses tables. Best regards, Maxime 2010/5/31 Marius Dumitru Florea <[email protected]>
Hi Maxime,
AFAIK there's no API for this purpose and thus no UI. The only thing you can do is to delete the stats records from the database (xwikistatsdoc, xwikistatsreferer and xwikistatsvisit tables).
Now, even if you delete the stats recorded for documents in X space (e.g. how many times X.Y page was edited) by deleting the associated records from xwikistatsdoc table, you can't decrease the number of edits made by user A who edited 3 times X.Y page because xwikistatsvisit table contains aggregated visit stats so you don't know how many times A edited pages from X space.
Hope this helps, Marius
I confirm that it works. In summary, to reset the stats of a wiki, just delete the content of the 3 tables xwikistatsdoc, xwikistatsreferer and xwikistatsvisit. Of course, it would be easier to just click on a button in an admin page but it seems that it is not a very used feature. Thank you Marius.
participants (2)
-
GeLo -
Marius Dumitru Florea