Skip to main content

Performance

What is Memcached?

According to the official Memcached website, Memcached is a:

“Free and open source, high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering.”

In a simple term, Memcached is a distributed temporary object caching system that stores strings and objects in the server’s RAM resulted from processing the database queries, API calls or page rendering. The servers used for this mechanism can be called as Memcached servers.

How to install?

  1. Install Memcache or Memcached on the machine.
  2. In wp-config.php add this line: define(‘WP_CACHE’, true);
  3. Install this plugin: https://wordpress.org/plugins/wp-ffpc/ or https://wordpress.org/plugins/w3-total-cache/
  4. Configure the plugin settings as the instructions
  5. Smile and lean back :)