Magento – Slow page load times on Magento 2.3.1

magento2magento2.3.1

I've been getting slow page load times on my magento 2.3.1 site. I am still developing it and it is in developer mode, but i dont think switching to production mode will help too much. I have been developing a theme but it was slow before i noticed this and i have set it back to luma for further testing. Redis, varnish cache and elasticsearch 6 were all enabled, i have turned varnish and elasticsearch off but they did not make a difference and i heard that when using magento profiler you should turn off varnish.
I am running on a cloudserver with NGINX, PHP-FPM on Ubuntu 18.04. I have allocation of 4 cores and 4GB RAM. I use a plugin that will import most of my stock automatically from product feeds, i am currently using the sample data of just over 6000 products.

This is a link to my magento profiler data https://pastebin.com/SUM0u3aE

This section seems to be part of the issue

· · · TEMPLATE:/var/www/clicksaveandprint.com/shop/vendor/magento/module-customer/view/frontend/templates/account/authentication-popup.phtml 0.001382 0.001382 1 75,552 0
· · · TEMPLATE:/var/www/clicksaveandprint.com/shop/vendor/magento/module-catalog/view/frontend/templates/category/products.phtml 3.264447 3.264447 1 7,530,600 4,194,304
· · · · EVENT:catalog_block_product_list_collection 2.471067 2.471067 1 6,501,048 4,194,304
· · · · · OBSERVER:review 2.471036 2.471036 1 6,499,400 4,194,304
· · · · · · EAV:load_collection 2.466872 2.466872 1 6,363,984 2,097,152

I have not edited the products.phtml. The product pages load better and with varnish on it is acceptable but the category pages are far from ideal.

Can anyone help narrow down the issue?

Best Answer

Check this also

Checking cache status is the last thing one can think about, but may be this is the case. Sometimes it happens after setup:upgrade as well

Related Topic