skip to Main Content

Evening All,

At by absolute wits end and hoping someone may be able to save me! I am in the process of migrating a number of PHP applications into Azure. I am using:

  • Linux based App Service running PHP 7.4 (2 vCPUs, 8Gb RAM) at a cost of £94 a month.
  • Azure Database on MySQL 8.0 (2 vCPUs) at £114 a month.

My PHP apps run well, decent load time of under 1 second per page. WordPress performance however is awful. I am going from a 1 second page load to around 10 seconds, particularly on the back end. I have read all of the Azure guides and have implemented the following obvious points:

  • Both the App Service and the MySQL install are in the same data center
  • App Service is set to ‘Always On’
  • Connection Redirection is set to Preferred and tested as working

The same app runs fine on a very basic £10 or so a month shared hosting package. I have also tried the same setup in Amazon Web Services today and page load is back to a second or so.

In Chrome Console, the delay is in TTFB. I have disabled all the plugins and none stand out as making a huge difference. Each adds a second or so page load, suggesting to me a consistent issue when a page requires a number of database calls.

What is going on with Azure and the awful WordPress performance?! Is there anything else I can investigate or try? Really keen to stay with Azure but can’t cope with the huge increase in cost for a performance hit.

2

Answers


  1. Chosen as BEST ANSWER

    The issue turned out to be the way the file system runs in the app service. It is NOT an issue with the database. The App Service architecture is just too slow at present with file read/writes, of which Wordpress uses a lot. Investigated the various file cache options but none improved enough.

    Ended up setting up a fairly basic, and significantly cheaper, virtual machine, running with the same database and performance is hugely improved.

    Not a great answer, but App Services are not up to Wordpress at present!


  2. The comments below are correct. The "problem" is the database. You can either move MySQL to a Virtual Machine (which will give you a better performance) or you can also try to use cache plugins such as WP Super Cache as well decrease the number of requests.

    You can find a full list of tips in the following link:

    https://azure.microsoft.com/en-us/blog/10-ways-to-speed-up-your-wordpress-site-on-azure-websites/

    PS: ignore the date, it’s still relevant

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search