Server rental store

Caching mechanisms

# Caching Mechanisms in MediaWiki 1.40

This article details the various caching mechanisms available in MediaWiki 1.40, and how to configure them for optimal performance. Effective caching is crucial for a responsive and scalable wiki, reducing database load and improving user experience. This guide is intended for system administrators and experienced wiki operators.

Understanding Caching in MediaWiki

MediaWiki employs multiple layers of caching to minimize the need to repeatedly generate content from the underlying database. These layers range from object caching to page caching, each serving a specific purpose. Properly configuring these caches can significantly improve wiki performance, especially under high load. Before diving into the specifics, understand the general principle: caching stores the results of expensive operations (like database queries or complex template parsing) so that future requests for the same data can be served from the cache, which is much faster.

Object Caching

Object caching stores individual PHP objects, such as database query results, parser cache entries, and other intermediate data. This is the first line of defense against database load. MediaWiki supports several backends for object caching:

⚠️ *Note: All benchmark scores are approximate and may vary based on configuration. Server availability subject to stock.* ⚠️