Choosing Better Plugin
When we are talking about WordPress, what makes it great is the ability to expand itself by using plugins. Those plugins can also expand themselves by having their own plugins. Choosing the right plugin to do the right job will make WordPress run faster than ever.
There are more than 50,000 registered plugins inside WordPress database. Those numbers didn’t even count numerous paid plugins being sell on Codecanyon or other private plugins store.
Depending on who wrote the plugins you are using, it will define how fast your WordPress will be served to your visitors.
Front-end Caching Plugin
W3 Total Cache and WP Super Cache are two competitive plugins for caching front-end WordPress code. There are saying says that, “No one knows your product better than you do”. Automattic, the creator of WP Super Cache is also the creator of WordPress. By holding to that phrase, we are choosing WP Super Cache since it is straightforward, easier to use and lightweight.
Installing W3 Total Cache brings chaos to our WordPress sites by making it slow and unresponsive for a certain period in the admin panel. While thinking it was just a WordPress problem, we didn’t know it was W3 Total Cache all this time. After we have replaced it with WP Super Cache, it works as advertised.
Object Caching Plugin
Caching WordPress object is crucial for creating a fast site. The front-end of a WordPress will be using the object to make your post and page. When a new visitor opens the same post, a new object will again, created. Creating the same object isn’t good for your site. Thus, object cache will come for a rescue.
Caching object as a static file is okay. But the best one is to cache it in memory. We are using Redis Object Cache plugin to achieve this. You need to make sure your server has Redis installed and started for the plugin to works.
Queuing email for comments
Did anyone notice that WordPress comment system sucks? It is freaking slow because when someone leaves out comment, it will send an email to the blog owner. Queueing email is fairly simple by using SMTP Mailing Queue plugin. We suggest you take a look at Mailgun or ElasticEmail if you don’t have Mail Transfer Agent (MTA) inside your server.
A scheduled job will be created by WordPress whether you like it or not. This job will be running when it has reached the execution time. It will appear to you that your site runs fast to you but in reality, your next website visitor will execute the jobs. You can’t disable the cron job, but you can make it run using a true cron job.
Open your wp-config.php and add DISABLE_WP_CRON under DB_COLLATE as shown in the example below.
/** The Database Collate type. Don't change this if in doubt. */ define('DB_COLLATE', ''); /** Disable wp-cron.php **/ define('DISABLE_WP_CRON', true);
After you have saved the file, register a cron command inside your crontab.
/path/to/php/binary/php -q /path/to/your/wordpress/folder/wp-cron.php
RunCloud as your server manager
Provisioning your server will bring you a total pain. Due to the pain in setting up a perfect server, it is advisable to use tools like RunCloud for hassle-free server management.
WordPress sites on a RunCloud managed cloud server are fast, stable, and secure. If you haven’t already, sign up for a free trial account to find out for yourself what everybody is enthusing about, we promise you will love it.