2.3.2. Memcache(d)

Payment

On shared hosting the service is paid daily from the balance, on business hosting it is included in the plan price. When ordering for shared hosting, the balance must have an amount to pay for minimum 1 month of service usage.

Memcache(d) is a service for caching data in RAM. It is designed to speed up web apps by reducing excessive load on the database. It allows you to store key-value pairs in memory for small amounts of data (strings, objects) obtained from a database, API calls, pre-formed web page content (anything that takes too long to execute and can be cached). Simply put, Memcache(d) is caching site pages not to disk (or to a database), but to RAM.

Important points:

  • Memory is allocated for the whole hosting account without being divided by sites.
  • Business hosting You can allocate no more than 1/4 of the plan's memory capacity. This limitation is due to the fact that a part of memory is required for scripts operation. If the allocated memory is insufficient, the oldest data in the cache will be overwritten.
  1. Open the "Memcache(d)" section.
  2. In the "Memcache" block, allocate the required amount of memory:
  3. Wait approximately 15 minutes for the service to activate.

c- Configure Memcache(d) on the desired sites.

Notes:

  • By default, the hosting service provides access to the PHP modules memcache and memcached.
  • You can check the operation of Memcache(d) using the test script.

To connect to the Memcache(d) server, use the address of the required socket from the "Memcache" block:

Instructions for configuring Memcache(d) in various CMS:

A brief description of each parameter is available in the official documentation.

Memcache(d) usage statistics are displayed in the "Memcache(d)" section:

  1. Open the "Memcache(d)" section.
  2. In the "Statistics" block, click "Clear cache".
In the main menu of the bot, select "Hosting → Hosting account → your hosting account → Clear Cache → Clear Memcache cache".
Content