Title: Object cache not working (memcached)
Last modified: February 12, 2023

---

# Object cache not working (memcached)

 *  [benja1](https://wordpress.org/support/users/benja1/)
 * (@benja1)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/object-cache-not-working-memcached/)
 * Hi,
 * I have a LAMP stack with all the latest specs with multiple virtual hosts.
 * DO blocked the usual port used with memcached so I changed it by adding this 
   code to wp-content.php:
 * $memcached_servers = array( ‘default’ => array( ‘127.0.0.1:22222’ ) );
 * I use W3 Total Cache, so I added the hostname: port / IP: port under performance
   > advanced > object cache. First, it worked until someday it just stopped working
   😀 again.
 * I have restarted memcached and it is running with no errors on the server. Not
   working on WordPress.
 * Thanks!
    -  This topic was modified 3 years, 3 months ago by [benja1](https://wordpress.org/support/users/benja1/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fobject-cache-not-working-memcached%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/object-cache-not-working-memcached/#post-16462731)
 * > I use W3 Total Cache, so I added the hostname: port / IP: port under performance
   > > advanced > object cache. First, it worked until someday it just stopped working
 * I recommend asking at [https://wordpress.org/support/plugin/w3-total-cache/](https://wordpress.org/support/plugin/w3-total-cache/)
   so its developers and support community can help you with this.

Viewing 1 replies (of 1 total)

The topic ‘Object cache not working (memcached)’ is closed to new replies.

## Tags

 * [object-cache](https://wordpress.org/support/topic-tag/object-cache/)

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 1 reply
 * 2 participants
 * Last reply from: [t-p](https://wordpress.org/support/users/t-p/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/object-cache-not-working-memcached/#post-16462731)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
