MagicNoCache demo
| MagicNoCache | |
|---|---|
| Documentation | |
| Maintained by WikiTeq? |
No |
| Version | |
This wiki has the MagicNoCache extension installed, which adds a new magic word, __NOCACHE__, to mark a page as one that should never be cached, usually because it is updated frequently.
Normally, information about the page cache is not accessible to users (since caching is part of MediaWiki's internals and should generally "just work" without users needing to deal with it). But, the parser cache does add HTML comments to the output of the page with some details. Using a widget to extract those comments, the parsing notes for this page are shown below. Notice that the "Cache expiry" line shows a non-zero value (the number of seconds for the entry to last) and the last line shows how the page was stored in the cache - this page can be cached, because it does not have the magic word.
If you look at MagicNoCache demo/uncached, however, the output has a cache expiry of 0 seconds (no caching) and the page is not stored in the parser cache - that page does have the magic word.
Loading...