Memcached Now Available on All Hosting Plans!

Good news, everyone! We’re quite pleased to announce all of our hosting plans now offer memcached support. Even better, it’s 100% free! For those unfamiliar, memcached is a general purpose memory caching system. Its primary benefit is to cache your database requests and reduce (or eliminate) the need to hit your database for common queries. For a number of sites (especially those that run WordPress), inefficient queries are one of the most common causes for site slowdowns. Caching those queries and serving them from memory will show some drastic performance improvements for even your busiest sites.

Everything.

Save the poor databases!

An Introduction to Memcached

Every MySQL query you perform takes valuable time, CPU power, and is often redundant when you’re executing the same queries over and over. The main goal when using memcached for your site/software is to improve performance as much as possible. This is accomplished by using memcached to cache your MySQL queries, which in theory should cut out the most resource intensive aspect of most PHP/MySQL based sites. Instead of querying the database directly for each request, which can be incredibly taxing, memcached will cache your most common queries and serve them from memory.

This concept is no different than using RAM on your local computer compared to accessing your hard drive. RAM (memory) is incredibly efficient for frequently accessed programs like web browsers, email clients, video games, etc. Accessing those same programs from disk every time would have a very negative and very noticeable impact on performance. Using this example you’ll begin to see why it’s so much more efficient to store those MySQL queries in memory instead of hitting your database each time.

 How to Enable Memcached on Your Hosting Account

Enabling memcached could not be simpler! We’ve integrated the feature right into cPanel, so you’re quite literally one click away from being able to use memcached on your supported software. To get started, login to cPanel and search for ‘memcached’. Once you’ve loaded up the interface, all you need to do is hit ‘Start Memcached’. That’s it!

Start Memcached

Start Memcached

Assuming it’s successful (it should be), you’ll be given a unix socket to connect to.

Woo! It Worked!

Woo! It Worked!

Now any time you visit your memcached interface you’ll see it’s running with the IP and port listed:

Memcached Connection Info

Memcached Connection Info

Once enabled you’ll use that IP and port to configure your supported software. Programs like WordPress, Joomla, Magento, and Drupal (among many others!) all support memcached.

As an example, we went ahead and setup a WordPress test installation with W3 Total Cache installed to configure a memcached connection. Lo and behold our test worked! When you successfully configure memcached in W3TC you can run a test and you’ll see the output like this screenshot shows:

W3TC with Memcached

W3TC with Memcached. Test Passed!

We’ll have a more detailed post coming soon about using memcached with WordPress and W3TC. Until then you should go ahead and try yourself! It’s surprisingly simple to setup and you may be pleasantly surprised at the performance improvements you’ll see :)!

* Please note you’ll want to use the “Paper Lantern” theme to see the Memcached option.

This entry was posted in General, Tips and tagged , , . Bookmark the permalink.

15 Responses to Memcached Now Available on All Hosting Plans!

  1. fery says:

    Can I steel wp super cache for this?

  2. I don’t know if WP Super Cache has Memcache support however you can always use Memcache for object caching by using the “Memcached” add-in: https://wordpress.org/plugins/memcached/.

    Contact support and ask for assistance if you need it :).

  3. Still not available for Singapore server ? i searched my Cpanel account and did not find the Memcached

  4. Martin says:

    Hi,

    If I understand correctly, Memcached option is visible only on paper lantern interface. The question is, how I can change cpanel theme, because i have account on ams002 and my choice is limited only to RV or X3.

  5. @Đánh giá – It should be available on every server. Which Singapore server are you on?

    @Martin – You can change it near the top of the control panel. If you’re having issues submit a ticket at https://support.hawkhost.com and ask them to change it for you. Alternatively this week everyone on X3 / RVSkin will be moved to Paper Lantern automatically.

  6. Đánh giá Hawkhost says:

    @Cody Roberson

    Thanks for reply, I am on sng010

    Just searched again and there is not Memcached there, please check.

    Regards,

  7. Hi Đánh giá,

    It looks like it’s on that server. Please make sure you’re using the “Paper Lantern” theme or contact our staff and they’ll change it for you :).

    *EDIT* As of now every account has been changed to use the Paper Lantern theme so you should see the option now :).

  8. Daddyweb says:

    I enabled Memcached and install W3Total cache plugin but I can’t choose Memcached via W3total cache setting, it’s hidden.

    I can only choose Disk cache.

    How ?

    THanks

  9. You’ll want to enable the “Memcache” extension through your control panel so W3TC picks it up. You can do via the “Select PHP Version” option. Alternatively contact support and we can enable it for you :)!

  10. paijos says:

    maybe add googlepagespeed too.
    i ever try (free 1 mont) at ‘neigbour’ hosting. they ‘superchacer’ include googlepagespeed.

  11. Jesin A says:

    What kind of security is in place to prevent a user from accessing someone else’s memcached port?

  12. We will have authentication via SASL soon with all Memcached instances.

  13. Steinbach says:

    Shared hosting have 1024MB of RAM, if i used memcached my RAM will load 100%, is it right?

  14. Tony Baird says:

    By default all memcached instances can use up to 64mb of memory. No need to worry about it using your entire memory allocation. The memcached instance also only uses the amount of memory necessary. For example if you added 1MB of data to it then it would use approximately 1mb of memory.

  15. At present, Hawk Host uses Socket instead of TCP/IP ports so that the way above is outdated. At present, I use Memcached is friend plugin that works for latest php 7.1. Thanks for offering free great Memcached feature all hosting plans.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.