Last modified: 2007-01-01 00:03:48 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 8447 - Setting any $wgHitcounterUpdateFreq greater than 1 halts pagecounters
Setting any $wgHitcounterUpdateFreq greater than 1 halts pagecounters
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
PC Linux
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2006-12-31 20:33 UTC by Carl Austin Bennett
Modified: 2007-01-01 00:03 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Carl Austin Bennett 2006-12-31 20:33:43 UTC
Presumably, `hitcounter` is an SQL memory table which temporarily pagenumbers as
pages are viewed; this is supposed to be periodically written back to the main
database. The number of entries amassed before doing so is $wgHitcounterUpdateFreq.

With the MW 1.9-svn software (Dec 29 version, installed with memcached and
eAccelerator), I'm seeing entries do indeed find their way into the `hitcounter`
table (in memory) but then never get written back to the main `page` table. They
accumulate until $wgHitcounterUpdateFreq records are created in memory, then
they disappear entirely.

End result is that, for example, if "this page has been viewed 230234 times":
come back a few days later and it's still at 230234.

Configuring the wiki to write the page counter to the main database on every
pageview does make the problem goes away - but with a penalty in speed.
Comment 1 Brion Vibber 2007-01-01 00:03:48 UTC

hc_n FROM `hitcounter` GROUP BY hc_id
SQL ERROR (ignored): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near
'ASSELECT hc_id,COUNT(*) AS hc_n FROM `hitcounter` GROUP BY hc_id' at line 1

Fixed in r18704.

Note You need to log in before you can comment on or make changes to this bug.