WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
Memcache Vs. Memcached (15 posts)

  1. cfisher
    Member
    Posted 4 years ago #

    My site is hosted on a popular cloud host ("R.S." - I won't say names so this thread is not shut down). I currently use the disk enhanced method for all of my caches. I want to use more advanced, presumably faster caching using Memcached. However, my webhost apparently uses Memcache (not Memcached), and I get an W3TC error when I try to use Memcache. Has anyone had any luck getting advanced caching to work in this web host environment? Or am I out of luck?

  2. cfisher
    Member
    Posted 4 years ago #

    I'm sure the error code might help too:

    "Page caching is not working properly. Memcached server(s): [server IP removed] may not running or not responding. This error message will automatically disappear once the issue is resolved."

  3. cfisher
    Member
    Posted 4 years ago #

    You can cancel this request.

    I spoke with tech support and it is not possible to install memcached on cloud sites(which I am) - memcached in only available on their cloud servers. Looks like I'll be using disk based caching from now on.

  4. Gravitydk
    Member
    Posted 4 years ago #

    I think stormondemand.com lets you use memcache. They're a cloud provider. I have xcache going with them at the moment, and they suggested memcached and did not indicate any disallowance.

  5. cfisher
    Member
    Posted 4 years ago #

    Thanks for the suggestion.

  6. Frederick Townes
    Member
    Plugin Author

    Posted 4 years ago #

    I do no recommend the user of memcache(d) for a single server deployment, use an opcode cache as necessary.

  7. Gravitydk
    Member
    Posted 4 years ago #

    One use-case for memcache is when you're using PHP Handler of CGI, which means (to my knowledge) that xcache, for example, does not create persistent object caches, only opcode.

    In this circumstance, I think it's going to be useful even on a single server.

  8. Frederick Townes
    Member
    Plugin Author

    Posted 4 years ago #

    I still cannot say that is always true that it will be the fastest of the remaining methods.

  9. ds123
    Member
    Posted 3 years ago #

    Frederick ... i have a dedicated server on the cloud does this mean its a stand alone server or multiple? meaning should i run memcache or opcode? thanks!

  10. kfawcett
    Member
    Posted 3 years ago #

    @ds123 A dedicated server is a single server. If you're only running one server then stick to something like APC.

    Here's a good article that might help to explain caching a little better: http://markjaquith.wordpress.com/2010/08/06/apc-object-cache-backend-for-wordpress/

  11. ds123
    Member
    Posted 3 years ago #

    thanks @kfawcett ...i just wasn't clear on what is running a multiple server means ..... i thought because it is powered by a cloud of servers that it might be considered multiple servers like i know it can get cpu from other servers when needed ...... if i really had multiple servers though i would have more than one ip address correct?

  12. kfawcett
    Member
    Posted 3 years ago #

    What do you mean it's powered by a cloud of servers? Who is your hosting provider? Are you sure you have a dedicated server?

  13. Frederick Townes
    Member
    Plugin Author

    Posted 3 years ago #

    if i really had multiple servers though i would have more than one ip address correct?

    Probably, but there are more factors than that.

  14. kbeezie
    Member
    Posted 3 years ago #

    It's kind of silly to say you should not use memcache on a single server, and that you should use opcode caching instead... two different things. You should actually be using both if you got the memory for it. That is to say opcode caching for the PHP code itself (which can be enabled by default with APC and such in php.ini), and memcache for the content.

  15. Frederick Townes
    Member
    Plugin Author

    Posted 3 years ago #

    @kbeezie, I don't think you understand how those technologies and servers work. Memcached is not going to be faster "in general" there are exceptions. APC is going to be great for lots of optimizations, but not all etc. The point is not to use your available memory.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic