Thanks for your patience. We apologize for any inconvenience this issue may have caused. It looks like you have done some of the necessary actions to decrease wait time.
Here are a few additional things you can try:
- Make sure you're using the latest version of PHP. The latest version of WordPress recommends using PHP 7.4 or greater
You can change the PHP version from the Azure portal under Setting > Configuration > General Settings
- As you mentioned, switching to PHP FastCGI can also help reduce wait time. To accomplish this you can follow the steps listed in this blog
- Diagnose if your theme or any extension is slowing down your site. Some themes just like plugins can be poorly written and can slow down your site. Test if your theme is responsible for the long page load times.
- Lastly, you can try to enforce a persistent database connection between your WP site and your database. Usually, "WordPress does not use a persistent database connection, which means that after a period of idling, the connection to the database will be stopped and when someone visits your app service and it will have to set up a connection to the database, which makes WordPress extremely slow. In order to fix this, you need to login to Advanced Tools (Kudu), navigate to wwwroot in your app service, edit wp-config.php and add the following at the bottom": define('USE_PCONNECT', true);
define('WP_CACHE', false);
Hope that helps. If your issue still persists after trying those solutions please let us know so we can investigate further.
Thanks,
Grace