Extension:MagicNoCache

From mediawiki.org
Jump to navigation Jump to search
Other languages:
English • ‎Türkçe • ‎polski • ‎Ελληνικά • ‎العربية • ‎日本語
MediaWiki extensions manual
OOjs UI icon advanced.svg
MagicNoCache
Release status: stable
Implementation Page action
Description Allows the disabling of caching on a per page basis
Author(s)
Latest version 1.6.0 (2020-02-23)
MediaWiki 1.32+
PHP 7.0+
MediaWiki 1.36 Not formally tested
MediaWiki 1.34 Not formally tested
MediaWiki 1.32 Not formally tested
Database changes No
License GNU General Public License 2.0 or later
Download
Translate the MagicNoCache extension if it is available at translatewiki.net

Check usage and version matrix.

Issues Open tasks · Report a bug

The MagicNoCache extension creates a new magic word __NOCACHE__ and disables the cache for any page in which it finds it. Thus it makes sure that specific pages never get cached as they get updated extremely frequently.

Installation[edit]

  • Download and place the file(s) in a directory called MagicNoCache in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'MagicNoCache' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.