HitCounters

Revision as of 14:40, 22 November 2017 by Lsireta (talk | contribs) (Changed categories.)

The HitCounters extension provides the page views functionality that was removed in MediaWiki 1.25.


Differences from core MediaWiki implementation[<a href="https://www.mediawiki.org/w/index.php?title=Extension:HitCounters&action=edit&section=2" title="Edit section: Differences from core MediaWiki implementation">edit]

Before MediaWiki 1.25, the page views counting functionality was in core MediaWiki. This extension is based on that same code, but was deliberately done in a more lightweight way in order to speed up processing time. Many lines of superfluous code were removed. Also, the old MediaWiki core code did numerous database queries on every page hit; these have all been removed as well. This change may possibly lead to some inaccuracies in the data.

The core differences that wiki administrators need to know are:

  • The hit counts are stored in cache.
  • The visible hit count at the bottom of each page is updated only once per day. (Pages with hit count less than 100 are updated once per minute.)
  • If you refresh your browser on a wiki page, that hit is ignored.


Source: mediawiki

Attachments

Discussions