X-Cart:Using Memcached with X-Cart

From X-Cart 4 Classic
Revision as of 01:14, 11 October 2016 by Dohtur (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
X-Cart 4.7or above

Starting with X-Cart version 4.7.7, it is possible to use Memcahed with X-Cart:

  1. Install Memcached server (https://memcached.org/)
  2. Launch Memcached server and enable auto-start for it.
  3. Install Memcache extension (http://php.net/manual/en/memcache.installation.php).
  4. In either /etc/php/conf.d/memcache.ini or /etc/php/php.ini, uncomment the following line:
  5. Restart the web server.
  6. Review phpinfo to check that Memcache module has been added, with the memcache.default_port number 11211.
  7. Remove the comment from config.php:
-#define('USE_MEMCACHE_DATA_CACHE', true);
+define('USE_MEMCACHE_DATA_CACHE', true);