Last modified: 2014-10-23 11:44:55 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T29576, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 27576 - Option to restrict view counter per namespace
Option to restrict view counter per namespace
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
unspecified
All All
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on: 24297
Blocks:
  Show dependency treegraph
 
Reported: 2011-02-20 00:40 UTC by Subfader
Modified: 2014-10-23 11:44 UTC (History)
3 users (show)

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


Attachments

Description Subfader 2011-02-20 00:40:01 UTC
http://www.mediawiki.org/wiki/Manual:$wgHitcounterUpdateFreq is there to improve the performance by lowering the database load a bit but it has a major disadvantage: your view counts become wrong and lower than as without using $wgHitcounterUpdateFreq.

My thought is that it would be more useful for people to not count views on less important namespaces instead and only count e.g. MAIN. Sure the main ns takes most of the views but performance boost should be the same and in the end you don't ruin your view counters as with $wgHitcounterUpdateFreq.
Comment 1 Krinkle 2011-02-20 00:48:43 UTC
If there was a hook (bug 24297) you can do this with a few lines of code in LocalSettings.php
Marking as dependency.
Comment 2 Subfader 2011-02-20 00:49:49 UTC
Thanks. Looking into it.

Maybe it's worth thinking about removing $wgHitcounterUpdateFreq? It's simply leading to lower and incorrect view counts and the performance boost is questionable.
Comment 3 Subfader 2011-02-20 01:11:18 UTC
the question is what creates more database load: simply counting each page view or checking the page's namespace to return false?

Maybe there's a "light" to only count the main ns?
Comment 4 Quim Gil 2014-04-29 14:48:39 UTC
Moving to Database only because it is a bit more precise than General/Unknown.

Marking as Lowest, since nobody seems to be working or planning to work on this currently.
Comment 5 Kevin Israel (PleaseStand) 2014-10-22 18:02:38 UTC
The hitcounter feature was removed entirely in <https://gerrit.wikimedia.org/r/#/c/150699/>.
Comment 6 Subfader 2014-10-23 11:44:55 UTC
Very bad decision imo.

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


Navigation
Links