How to Use Joomla Memcache on a VPS

Memcache is very powerful and has been widely supported by current CMS including WordPress and Joomla.

Steps to enable memcache in Joomla.

  • Open or edit your Joomla configuration.php file and then locate and change the following lines:
public $caching = '0'; 
public $cache_handler = 'file';


Become:

public $caching = '2'; 
public $cache_handler = 'memcache';
  • Add the following line right after the line above ( public $cache_handler = 'memcache'; ):
public $memcache_server_host = 'localhost'; 
public $memcache_server_port = '11211';


And save the configuration configuration.php file

  • Login to your Joomla admin area and then select the Global Configuration -> System tab. After that, enable persistent memcache and follow the configuration as shown in the following screen shot:

note: we recommend that you do not enable memcache compression because in some cases it can cause the website display to be damaged.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.