caching
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
caching [2014-10-31 09:10] – 94.100.135.2 | caching [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, | 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, | ||
- | |||
< | < | ||
~~NOCACHE~~ | ~~NOCACHE~~ | ||
</ | </ | ||
- | |||
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. | ||
+ | |||
+ | The age of the cache for the entire wiki can be changed with the general setting [[config: | ||
+ | |||
+ | For images you can also [[: | ||
+ | |||
+ | 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 ===== | ===== Purging the cache ===== | ||
All of DokuWiki' | All of DokuWiki' | ||
- | * simply resaving the configuration from the [[plugin: | + | * simply resaving the configuration from the [[plugin: |
- | * using the Unix command [[man> | + | * using the Unix command [[man> |
+ | * using the [[plugin: | ||
* or opening and saving the file in your favorite editor. | * or opening and saving the file in your favorite editor. | ||
- | For purging the cache of a single page only see [[devel: | + | For purging the cache of a single page only, see [[devel: |
===== Development ===== | ===== Development ===== | ||
See the developer [[: | See the developer [[: |
caching.1414743019.txt.gz · Last modified: 2014-10-31 09:10 by 94.100.135.2