Manual:$wgDisableCounters

Details
$wgDisableCounters  determines whether or not to update the number of times a page has been viewed. The counter is displayed in the footer of an article/page as: "This page has been accessed X times"

This setting also determines whether Special:Popularpages is available.

This variable is initialized in. The initial value is. To override the default value, add the line  to the file

The value of the counter is updated in  in the function. The variable  is also referred to in other script files.

How to skip update of the view counter when page is accessed by a particular user
Let's say, for example, you decide that you do not want the view counter to be updated when the sysop views a page. Here's how to implement this change:


 * in the file  search for.
 * find the following two lines of code:
 * change them to read:
 * Of course, between the " " marks, enter the user name you want to check for in all lowercase.

Example:

Explanation

 * First, we've made the variable  available by declaring it
 * Next, we're using the  function of the class to determine the name of the current user
 * Finally, the current user name might be a mix of upper- and lower-case characters and, depending on your version of PHP, that could make comparison to the user_name_you_entered fail, so to compare apples to apples, we convert the current user name to all lowercase using the  function and compare it to the all-lowercase name you entered.