Help:Caching

From semantic-mediawiki.org
Table of Contents

Cache (or caching) is a storage mechanism by which previously computed values are stored separately from the original request so that using the already computed results, future requests are served faster.

The general suggestion, where feasible, is to use redis1234 as cache backend to ensure that large blob objects can be stored and retrieved without impacting the general performance.

Technical aspects[edit]

  1. HtmlCache
  2. WebCache (eg. Squid)
  3. ParserCache
  4. QueryCache

Configuration settings[edit]

Caching, whether temporary or persistent, is an important part of MediaWiki's storage strategy. It is also an important infrastructural component in Semantic MediaWiki that improves the editing and viewing experience and helps to reduce the number of computational tasks that are required by the extension.

One dedicated subtype of cache in MediaWiki is parser cache. It targets parsing, the process of turning wikitext into a HTML representation, because parsing is one of the more expensive and memory-intensive tasks of the software, all the more so because the Parser allows extensions to add or modify data before the output is produced. Parser cache is designed to cache the rendered output of a wiki page and the main parser cache stores output of the latest revision of a page.

MediaWiki[edit]

  • $wgParserCacheType‎ (MediaWiki.org) − Sets how to use parser cache to cache parsed pages in order to speed up the output of the page (as viewed by another user with the same options).

Semantic MediaWiki[edit]

Related

  • $smwgFactboxFeaturesSets the behaviour of features related to the factbox with options SMW_FACTBOX_CACHE and SMW_FACTBOX_PURGE_REFRESH

See also[edit]

Note[edit]

Please be aware that this page is being used as reference in MediaWiki:Smw-sp-properties-cache-info.



References

  1. ^  Why Redis beats Memcached for caching "... Memcached and Redis serve as in-memory, key-value data stores ... Redis gives you much greater flexibility regarding the objects you can cache. While Memcached limits key names to 250 bytes and works with plain strings only, Redis allows key names and values to be as large as 512MB ..."
  2. ^  How fast is Redis?
  3. ^  Clarifications about Redis and Memcached
  4. ^  The issue with APCu is that it will store its cache in the PHP shared memory and means that different PHP processes share the available memory. See also Additional notes for Redis vs. APCu on Memory Caching