DokuWiki

It's better when it's simple

User Tools

Site Tools


caching

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
caching [2012-09-19 14:10] 194.44.164.133caching [2023-09-19 00:06] (current) – [Prevent Caching] Klap-in
Line 1: Line 1:
 ====== Caching ====== ====== Caching ======
 [[DokuWiki]] speeds up browsing through the wiki by caching parsed files((See [[images]] for info on image caching)). 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. [[DokuWiki]] speeds up browsing through the wiki by caching parsed files((See [[images]] for info on image caching)). 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 ===== ===== 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. 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.
- 
 <code> <code>
 ~~NOCACHE~~ ~~NOCACHE~~
 </code> </code>
- 
 Depending on how big and complex the page is, this may considerably reduce the speed with which that page displays. Depending on how big and complex the page is, this may considerably reduce the speed with which that page displays.
  
-===== Purging the cache =====+The age of the cache for the entire wiki can be changed with the general setting [[config:cachetime]]. 
  
-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 [[plugin:config|Configuration Manager]], using the Unix command [[man>touch]] or opening and saving the file in your favorite editor.+For images you can also [[:images#caching|control the caching]]
 + 
 +Some plugins have a more fine-grained caching e.g. ACL dependent such that the NOCACHE tag is not needed, or has specific settings about tuning or disabling its caching. 
 + 
 +===== Purging the cache =====
  
-Alternatively one may use [[plugin:toucher|toucher Plugin]] which does the same thing but through admin page (no shell access needed).+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 [[plugin:config|Configuration Manager]]
 +  * using the Unix command [[man>touch]]. 
 +  * using the [[plugin:stale]] plugin. 
 +  * or opening and saving the file in your favorite editor.
  
 +For purging the cache of a single page only, see [[devel:caching#Purging the cache]].
  
-For purging the cache of a single page only see [[devel:caching#Purging the cache]]. 
 ===== Development ===== ===== Development =====
 See the developer [[:devel:caching]] section to find more about caching. See the developer [[:devel:caching]] section to find more about caching.
caching.1348056624.txt.gz · Last modified: 2012-09-19 14:10 by 194.44.164.133

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