https://bugzilla.wikimedia.org/show_bug.cgi?id=28286

--- Comment #1 from Subfader <[email protected]> 2011-03-27 23:45:22 UTC ---
For those who are too lazy to click:

It seems that nobody knows how $wgHitcounterUpdateFreq works or even saves CPU
load.

A few weeks ago someone FINALLY added a description about the technical
details:
"When this setting is set to a number bigger than 1, the page id of any page
viewed is stored in the hitcounter table. About 1 in every
($wgHitcounterUpdateFreq)*0.25 hits, the number of entries in the hit counter
table is checked. If there is more than $wgHitcounterUpdateFreq entries in the
hitcounter table, then for each entry in the hitcounter table, the relevant
page_counter field in the page table is updated by 1 (and the hitcounter table
is emptied). Note if the same page is visited twice (or more) between updates
of the page table, it is only counted once."

But this doesn't seem to be true:

Meanwhile I observed that the description ("if the same page is visited twice
(or more) between updates of the page table, it is only counted once.") can't
be true:
I use $wgHitcounterUpdateFreq = '1100';. According to the description this
means that the view counter of an accessed page is raised by 1 within 1100
total wiki page accesses, no matter if said page has been accessed more than
once within those 1100 page accesses. Today I added a new page which I knew
would be HOT. After 15 minutes the footer did not read the view count yet (less
than 1100 total page accesses within that time, which seems ok with ~200,000
real page hits per day). After 30 mins it read that the page was accessed 50
times. This seems real too but can't be true with $wgHitcounterUpdateFreq =
'1100'; according to the description! Cos this would mean that my wiki had 1100
x 50 = 55,000 page access in 30 minutes. No way!

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to