• Resolved laptopleon

    (@laptopleon)


    We use a small merchandise website based on wordpress, using a vps and cloudflare because of ddos and other attacks.

    Our host advisted us to add W3 Total Cache, so I did, a few months ago.

    We kept getting an error message about a memcached server not responding or working:
    Object Cache: 127.0.0.1:11211.

    According to the hosting company, Memcached is running OK and they ‘don’t have support for website plugins’.

    Since the site seemed to work OK, I kept it like that. Until it became almost unreachable a week ago. Now I’m trying to find out that makes the site time out’s. Even with cloudflare off and only a few visitors, the site is very slow, timing out, while there is hardly any load on the server.

    So I tried the setup guide, tried setting the vps preferences for memcached to W3 Total Cache again and tried reinstalling W3TC.

    Still the Memcached option is unavailable. Any suggestions?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @laptopleon

    Thank you for reaching out and I am happy to assist you with this.
    W3 Total Cache recognizes the PHP extension so you need to install Memcached PHP extension on your server so that it can be available in W3 Total Cache.
    Please also check our FAQ for more details.
    Check the service at the CLI/SSH: memcached-tool 127.0.0.1:11211 display and memcached-tool 127.0.0.1:11211 stats.
    telnet 127.0.0.1 11211
    should communicate with memcache and respond to status commands etc
    Look if the service is running: ps afux | grep memc
    restart the service if needed (as root/sudo): service memcached restart.
    I hope this helps!
    Thanks!

    Thread Starter laptopleon

    (@laptopleon)

    Thank you for your response. The server already had the memcached php extension running though.

    We then did a second wordpress installation + W3 Total Cache plugin, to check if it’s the server or the wordpress that caused it.

    Finally we found that the Memcached PHP extention was only installed for PHP 8..

    After changing our site’s settings to PHP 8, the memcache option became available ??

    For others dealing with this: The host recommended to ask your host to run this command:
    dpkg -l | grep memcache

    This produces a list

    rc php7.4-memcache […]
    rc php7.4-memcached […]
    ii php8.0-memcahce […]
    ii php8.0-memcahced […]

    in which rc stands voor removed and ii stands for installed.

    • This reply was modified 3 years, 1 month ago by laptopleon.
    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @laptopleon

    Thank you for your feedback and the information.
    Glad to know the issue is resolved!
    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can’t select Memcached option’ is closed to new replies.