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?
- Install Memcache or Memcached on the machine.
- In wp-config.php add this line: define(‘WP_CACHE’, true);
- Install this plugin: https://wordpress.org/plugins/wp-ffpc/ or https://wordpress.org/plugins/w3-total-cache/
- Configure the plugin settings as the instructions
- Smile and lean back :)