DokuWiki

It's better when it's simple

User Tools

Site Tools


caching

This is an old revision of the document!


Caching

DokuWiki speeds up browsing through the wiki by caching parsed files1). If a currently cached version of a document exists, this cached copy is delivered instead of parsing the data again. On editing and previewing no cache is used.

Prevent Caching

To prevent a page from ever being cached, use the NOCACHE tag anywhere in the document. This is useful if the page contains dynamic content, e.g. PHP code that pulls in outside information, where the caching would prevent the most recent information from being displayed.

~~NOCACHE~~

Depending on how big and complex the page is, this may considerably reduce the speed with which that page displays.

Purging the cache

All of DokuWiki's cache files can be easily invalidated by “touching” the conf/local.php file and thus changing its last modification timestamp. This can be done by:

  • simply resaving the configuration from the Configuration Manager,
  • using the Unix command touch
  • or opening and saving the file in your favorite editor.

For purging the cache of a single page only see Purging the cache.

Development

See the developer caching section to find more about caching.

1)
See images for info on image caching
caching.1456259386.txt.gz · Last modified: 2016-02-23 21:29 by 217.191.166.249

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki