How to use flush Memcached with the command line interface (CLI).
You must have SSH access to your server in order to use this method. If you do not have SSH access, see How to enable SSH access for details.
- Log in to your server with SSH.
- Identify the location of the Memcached socket or IP/port using the configuration file of your CMS. If you require assistance locating this file or encounter difficulty with this procedure, contact our 24/7 support team by email or through your Client Portal.
- Flush your cache:
For unix-socket-based Memcached:
echo "flush_all" | nc -U [path/to/memcachedsocket.sock]
For TCP-socket-based Memcached:
echo "flush_all" | nc [memcachedhost] [memcachedport]