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.
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!
Assuming it’s successful (it should be), you’ll be given a unix socket to connect to.
Now any time you visit your memcached interface you’ll see it’s running with the IP and port listed:
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:
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.
Can I steel wp super cache for this?
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 :).
Still not available for Singapore server ? i searched my Cpanel account and did not find the Memcached
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.
@Đá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.
@Cody Roberson
Thanks for reply, I am on sng010
Just searched again and there is not Memcached there, please check.
Regards,
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 :).
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
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 :)!
maybe add googlepagespeed too.
i ever try (free 1 mont) at ‘neigbour’ hosting. they ‘superchacer’ include googlepagespeed.
What kind of security is in place to prevent a user from accessing someone else’s memcached port?
We will have authentication via SASL soon with all Memcached instances.
Shared hosting have 1024MB of RAM, if i used memcached my RAM will load 100%, is it right?
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.
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.