Set Up Memcached On My WordPress Blog
With its reliable back end, user-friendly front-end and thousands of fancy free wordpress themes coming out every day, wordpress is perhaps the easiest to start your new blog or e-commerce store (or any other type of website you might have dreamed up) with.
However, easy to use website solutions often come with a price penalty. WordPress is resource hungry, WordPress sites have proven to be far more CPU intensive as compared to static HTML websites or to microblogs.
No matter if you have a small WordPress blog or a large, high traffic intensive WordPress portal, SEO experts recommend that you choose a way to cache your wordpress web content so as to reduce server resource requirements and give your visitors the ultimate, fast on site browsing experience they anticipate from you. Set up Memcached on my WordPress blog will help you achieve this!
Your WordPress host or installation generally will not offer caching options, so you have to pick a solution yourself. If you set up Memcached on my WordPress blog you will have the fastest caching there is for wordpress.
Most free CDNs, for example, will copy and cache the static files in your website – .css files, .js files, etc.
Files, which are generated dynamically with queries to the database (like with blog posts or category pages) will not be cached, as they are created the moment a visitor wants to see them (Note: premium plans with most CDN providers allow caching of dynamic pages).
There are also many caching plugins for WordPress around the web. However, most of them are overloaded with features, which may cause increasing and unnecessary use of server resources.
This is where a dynamic caching platform like Memcached kicks in.
As a distributed memory caching system, Memcached caches only queries that are characteristic of database driven websites like WordPress.
Our WordPress cloud hosting platform offers native support for Memcached and you can enable Memcached for your WordPress-powered site in a few quick steps.
Here are the main steps to set up Memcached on my WordPress blog:
Step 1: Enable the “Memcached” option in the PHP Settings section of the DDNS Hosting Control Panel;
Step 2: Create a new Memcached instance from the Control Panel (Advanced-Memcached) using the default settings;
Step 3: Go to the WordPress folder in the DDNS File Manager.
Locate the wp_config.php file and add the following line:
This will enable WordPress to use caching.
Step 4: Install the WP-FFPC plugin from the WordPress admin area.
WP-FFPC is a plugin that uses system memory to cache blog posts and APCu/Memcached to store data.
It will pre-cache all your blog posts before users even go to your website.
Step 5: Activate WP-FFPC
Step 6: Go to Backend Settings
Step 7: Enter the path to the Memcached socket (you can find it in the Memcached section of the Control Panel) in the hostname field.
Step 8: Click on Save Settings.
Memcached is now enabled for your WordPress site.