DokuWiki

It's better when it's simple

User Tools

Site Tools


devel:caching

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
devel:caching [2018-05-30 15:21]
Klap-in [Two-Stage-Caching]
devel:caching [2018-05-30 15:21] (current)
Klap-in [developer note]
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.  The page's [[:metadata]] is a useful place for this.  Metadata can be accessed via ''$INFO['metadata']'' and the ''p_get_metadata()'' and ''p_set_metadata()'' functions. If using metadata please try to stick to [[http://dublincore.org|Dublin Core Metadata standards]].   * save some information relating to the pages it's involved with and the dependency specific to each of those pages.  The page's [[:metadata]] is a useful place for this.  Metadata can be accessed via ''$INFO['metadata']'' and the ''p_get_metadata()'' and ''p_set_metadata()'' functions. If using metadata please try to stick to [[http://dublincore.org|Dublin Core Metadata standards]].
-  * add an [[action_plugin]] component to handle the ''[[devel:event:parser_cache_use|PARSER_CACHE_USE]]'' event.+  * add an [[action plugin]] component to handle the ''[[devel:event:parser_cache_use|PARSER_CACHE_USE]]'' event.
  
 Caching itself is handled by the cache object((''inc/cache.php'')). The key parts of that object of interest to plugins are: Caching itself is handled by the cache object((''inc/cache.php'')). The key parts of that object of interest to plugins are:
devel/caching.txt ยท Last modified: 2018-05-30 15:21 by Klap-in