Site: US UK AU |

How to flush memcached

How to flush memcached

This article shows 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 obtain SSH access from Nexcess for details.

  1. Log in to your server with SSH.
  2. 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 Support Teamby email or through the Client Portal.
  3. 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]

For 24-hour assistance any day of the year, contact our Support Team by email or through the Client Portal. 

Article Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
Colocation Access Card Request Form
Added on Tue, Oct 6, 2015
How to transfer domains
Added on Wed, Nov 23, 2016
How to decompress files in gzip
Added on Tue, Jan 6, 2015
How to flush Redis
Added on Thu, Apr 7, 2016
How to request and revoke facility access (MEL, TMR)
Added on Mon, Jul 27, 2015
What is Git?
Added on Mon, Sep 15, 2014
How to create SSH keys in macOS and Linux
Added on Tue, Oct 20, 2015
How to not misinterpret MTR results
Added on Wed, Dec 21, 2016
How to request and revoke facility access - OTR
Added on Mon, Jan 22, 2018
Facility Access Policy (OTR)
Added on Mon, Jan 22, 2018