devel:caching
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
devel:caching [2021-12-01 22:10] – removed unrelated tip andi | devel:caching [2025-02-11 08:44] (current) – 2 spaces 217.175.54.43 | ||
---|---|---|---|
Line 8: | Line 8: | ||
http:// | http:// | ||
- | Some of your URL might look like this ''? | + | Some of your URL might look like this ''? |
http:// | http:// | ||
+ | http:// | ||
To force recaching of all pages, including page instructions, | To force recaching of all pages, including page instructions, | ||
+ | |||
+ | **Note:** There is the [[plugin: | ||
To only force recaching of page xhtml, touch '' | To only force recaching of page xhtml, touch '' | ||
Line 18: | Line 21: | ||
To purge the editor toolbar (and other cached JavaScript) call | To purge the editor toolbar (and other cached JavaScript) call | ||
http:// | http:// | ||
- | and clean up your browser' | + | and clean up your browser' |
You can also clear the CSS cache in the same way: | You can also clear the CSS cache in the same way: | ||
http:// | http:// | ||
+ | |||
===== Two-Stage-Caching ===== | ===== Two-Stage-Caching ===== | ||
Line 35: | Line 39: | ||
* '' | * '' | ||
- | =====Metadata===== | + | ===== Metadata ===== |
DokuWiki can also store [[metadata]] e.g. additional information of pages. Metadata is generated from the Instruction Cache, of which the XHTML of a page is generated too. The metadata has its own [[metadata# | DokuWiki can also store [[metadata]] e.g. additional information of pages. Metadata is generated from the Instruction Cache, of which the XHTML of a page is generated too. The metadata has its own [[metadata# | ||
Line 41: | Line 45: | ||
Metadata can furthermore be added to the [[metadata# | Metadata can furthermore be added to the [[metadata# | ||
- | =====Images===== | + | ===== Images ===== |
To improve the performance for the user, DokuWiki tries to cache external images. If someone wants to use an external image in the wiki content without caching or cache the image with a certain interval, there is [[: | To improve the performance for the user, DokuWiki tries to cache external images. If someone wants to use an external image in the wiki content without caching or cache the image with a certain interval, there is [[: | ||
Line 51: | Line 55: | ||
- | ==== developer | + | ==== Developer |
A simple measure to avoid caching is that plugin developers turn off caching completely. This is discouraged due to the extra rendering activities, in particular adversely for high traffic wikis. Instead of the plugin developers make use of the functionality to influence the cache by checking (themself formulated) dependencies. Therefore a syntax plugin will need to: | A simple measure to avoid caching is that plugin developers turn off caching completely. This is discouraged due to the extra rendering activities, in particular adversely for high traffic wikis. Instead of the plugin developers make use of the functionality to influence the cache by checking (themself formulated) dependencies. Therefore a syntax plugin will need to: | ||
Line 57: | Line 61: | ||
* add an [[action plugin]] component to handle the '' | * add an [[action plugin]] component to handle the '' | ||
- | Caching itself is handled by the cache object(('' | + | Caching itself is handled by the Cache object(('' |
* the '' | * the '' | ||
* '' | * '' | ||
* '' | * '' | ||
- | * '' | + | * '' |
- | * the cache name, '' | + | * the cache name, '' |
=== Individual Page Cache Expiry === | === Individual Page Cache Expiry === | ||
Line 69: | Line 73: | ||
/* code to expire the cached xhtml of page ns:page | /* code to expire the cached xhtml of page ns:page | ||
* $id = ' | * $id = ' | ||
- | * $data = array(' | + | * $data = array(' |
- | * $render = false; | + | * $render = false; |
- | * $persistent = false; | + | * $persistent = false; // this change doesn' |
+ | | ||
*/ | */ | ||
p_set_metadata($id, | p_set_metadata($id, |
devel/caching.1638393013.txt.gz · Last modified: by andi