WordPress needs no introduction and is the fastest growing Open source CMS solution which allows you to quickly create dynamic website. The more plugins, content and customizations you add to your WordPress site, can start slowing your WordPress site. Slow page load times can impact your target user audience and discourage them from visiting your website again. A lot of search engines consider page load times as well when ranking results and can impact the visibility of your website on their search engine results. If you are running your WordPress website on Azure Websites and want to optimize it to obtain fast page load time, then consider implementing these quick and easy steps mentioned below to speed up your WordPress site.
1. WEBSITE AND DATABASE MUST BE IN THE SAME DATA CENTER REGION
When running your WordPress site on Azure Websites, make sure your database and website are in the same datacenter. Network latency can increase the page load time for your site if the website needs to go around the world to make a call to the database. Keeping the site and database components in the same datacenter will reduce the network latency and improve the page load time for your website.
2. DO NOT USE FREE MYSQL DATABASE
If you are developing the site, you can use the Free MYSQL database that come with WordPress install from the Websites Application Gallery. But this is not ideal for a production level site. The FREE database has:
- Max 20MB storage for Database
- Allows up to 4 connections ( max_connections)
- Low performance
We recommend to use to a database that can handle your estimated user traffic from the various other options supported by ClearDB as seen here. To learn how to provision a database using Clear DB from Azure Store, click here. If ClearDB database option does not meet your needs, you can always setup an Azure VM running MySQL and use that server for your database. To learn how to install MySQL on an Azure VM, click here.
3. OPTIMIZE YOUR DATABASE
WordPress auto-saves everything but the disadvantage with this is that your database gets filled with a lot of post revisions, trackbacks, pingback, comments and trash items quickly which needs to be cleaned up manually on a regular basis. With the database plan you are using with your Website there will be limitation to the storage size allocated to your database and you may hit this limit as well if the database is not cleaned up regularly.
WP-Optimize is a great plugin which allows you to routinely clean up your database making the database more efficient and filled only with what needs to be kept. It saves you a lot of time without doing manual queries to optimize and clean up your database. Continue reading “10 Ways to Speed up your WordPress site on Azure websites”