devel:caching
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
devel:caching [2016-10-09 22:22] – dumbass glen | devel:caching [2018-05-30 15:21] – [developer note] Klap-in | ||
---|---|---|---|
Line 26: | Line 26: | ||
DokuWiki uses two cache files per page. To understand this you need to know that a page is parsed to an intermediate instruction format first before it is rendered to XHTML. DokuWiki caches both -- the instructions and the rendered XHTML. | DokuWiki uses two cache files per page. To understand this you need to know that a page is parsed to an intermediate instruction format first before it is rendered to XHTML. DokuWiki caches both -- the instructions and the rendered XHTML. | ||
- | * __Instruction Cache__ \\ The instruction cachefile only gets updated when the page, the config files(('' | + | * __Instruction Cache__ \\ The instruction cachefile only gets updated when the page, the config files(('' |
* __%%XHTML%% Cache__ \\ The XHTML cache is also affected by a maximum cache age setting ([[: | * __%%XHTML%% Cache__ \\ The XHTML cache is also affected by a maximum cache age setting ([[: | ||
Line 55: | Line 55: | ||
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: | ||
* save some information relating to the pages it's involved with and the dependency specific to each of those pages. | * save some information relating to the pages it's involved with and the dependency specific to each of those pages. | ||
- | * 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(('' |
devel/caching.txt · Last modified: 2023-09-02 16:31 by Klap-in