cancel
Showing results for 
Search instead for 
Did you mean: 

Magento2 Backend is Fast but frontend is Slow

SOLVED

Magento2 Backend is Fast but frontend is Slow

Hey All,

my production website is on Magento 2.3.4

but the front-end is slow ( Page load is about 12 Sec )

the back-end loads much faster ( Page Load is about 3 Sec )

I have approx 10 extensions from Amasty & Mirasvit

let me know how can i can troubleshoot this.

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Magento2 Backend is Fast but frontend is Slow

@mikesam202abc5 ,

please check following:: 

 

1. check for cacheable blocks: 

kindly check cacheable="false" in your theme and 3rd party modules that you have installed. 

many themes and modules implement using cacheable="false" and this disables FPC for that Page. 

 

to check this you can run the following command.

 

grep -r 'cacheable="false"' app/

This will give you a list of all occurrences for cacheable into app folder.

 

then you need to manually check and update the cacheable false.

 

Make sure default.xml & catalog XML does not have any cacheable false block 

 

 

2. check for external services and transaction trace. 

setup newrelic APM for all monitoring for code and check the trace of transaction which is taking the time. 

if you have any module which checks GEO from IP, then there must be some external services calls for each request. 

 

kindly Accept as Solution if this works for you and give Kudos Smiley Happy 

View solution in original post

4 REPLIES 4

Re: Magento2 Backend is Fast but frontend is Slow

@mikesam202abc5 ,

please check following:: 

 

1. check for cacheable blocks: 

kindly check cacheable="false" in your theme and 3rd party modules that you have installed. 

many themes and modules implement using cacheable="false" and this disables FPC for that Page. 

 

to check this you can run the following command.

 

grep -r 'cacheable="false"' app/

This will give you a list of all occurrences for cacheable into app folder.

 

then you need to manually check and update the cacheable false.

 

Make sure default.xml & catalog XML does not have any cacheable false block 

 

 

2. check for external services and transaction trace. 

setup newrelic APM for all monitoring for code and check the trace of transaction which is taking the time. 

if you have any module which checks GEO from IP, then there must be some external services calls for each request. 

 

kindly Accept as Solution if this works for you and give Kudos Smiley Happy 

Re: Magento2 Backend is Fast but frontend is Slow

@amitsamsukhahow to configure newrelic as FREE ?

 

Re: Magento2 Backend is Fast but frontend is Slow

you can signup for a Standard plan. 

after that goto APM and it will show you steps to install & configure in your server. 

 

Re: Magento2 Backend is Fast but frontend is Slow

@amitsamsukha  thanks

my developer added GEO country redirect in pub/index.php file

it was taking 6+ sec per request