Memcached/MediaWiki

Memcached is an alternative to the default APCu PHP caching system, and is designed to significantly lighten the load of queries on the database. Also, the OAuth extension requires memcached.

Memcached temporarily stores data from a database query in memory so that it can be quickly retrieved as necessary.


 * Debian/Ubuntu:
 * RHEL/CentOS:

By default memcached has only 64MB of memory allocated. Performance can be enhanced if you allocate it more memory, depending on how much you have and how large your database is. For example, to set this limit to 128MB, edit /etc/memcached.conf. Find this section in the file, and change -m 64 to -m 128, or whatever you prefer.

Now, start the memcached service with default port and settings:

Check that memcached is running:

Add memcached support to your MediaWiki install by editing LocalSettings.php:

If everything is working, enable memcached to run at every startup: