Extension:HitCounters

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

Differences from core MediaWiki implementation
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.

hit_counter table
describe hit_counter; +--+-+--+-+-++ +--+-+--+-+-++ +--+-+--+-+-++ SQL statement to (re)create table:
 * Field       | Type                | Null | Key | Default | Extra          |
 * page_id     | int(8) unsigned     | NO   | PRI | NULL    | auto_increment |
 * page_counter | bigint(20) unsigned | NO  | MUL | 0       |                |

Incompatible extensions
I need bug reports in Phabricator so that they can be worked on. If you run into a problem with one of the following, please create a phabricator task and link to it here. -- ☠ MarkAHershberger ☢ (talk) ☣ 16:02, 30 July 2016 (UTC)


 * Extension:AbuseFilter
 * Extension:DynamicPageList_(Wikimedia)
 * Extension:DynamicPageList_(third-party)
 * Extension:Semantic Extra Special Properties - The "_VIEWS" setting will have to be removed from the "LocalSettings.php" file to avoid problems. This was solved with version 1.4.0 which was released in January 2017.