Jump to main content Jump to doc navigation


First off, you'll need the following:

  • A running memcached server, and the address it is running at
  • The PHP memcached extension, installed on the server running MODX

Setting up Memcache in MODX

Go to System Settings, and change the "cache_handler" system setting to "cache.xPDOMemCache".

If you have more than one MODX site on your server with cache.xPDOMemCache cache handler, you need to create new system setting "cache_prefix" with a value like "yoursite_" to differentiate cache keys for different sites.

If your memcached server is on a separate server, you can set the path to it with the System Setting "resource_memcached_server", with a value like "memcache.tld:121212"

See Also

Support the team building MODX with a monthly donation.

The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.



$0 per month—let's make that $500!

Learn more