Only use in-memory caching


Caching systems should be entirely in memory (RAM). This removes the need to use up CPU power in order to manage input/output from the hard drive.
The aim is two-fold: quickly serve a client request and reduce the amount of hardware (and software) needed for the server to return the response.
Reading/writing to memory is very quick, meaning the time spent consuming resources is particularly short. Moreover, the practice also increases the life span of the components as there is no mechanical movement, unlike when the hard drive is used.

examples of integrating a memory cache for Drupal:
- Memcache integration: - Varnish integration:

Example of running MySQL entirely in memory:

This best practice should only be applied if it is coherent with your project's specifications.
Under CC-By-NX-SA license