cancel
Showing results for 
Search instead for 
Did you mean: 

Magento2 Block Performance

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

Magento2 Block Performance

Hello,

my store currently has a realy high TTFB of ~1-2s, of course I want to improve that,

Ive started with the profiler and noted that a custom block Ive created takes up a great amount of time.

What Ive done, was seperating the product part of all templates which render products (Magento_Catalog list/grid templates) into a seperate block.

This takes up  0.6s and around 5mbit of ram.

 

So is it a better practice to take less blocks, i.e. inline the block template/logic into my list block?

1 REPLY 1

Re: Magento2 Block Performance

Hi @Crtl

 

Yes previously we did face this kind of problem and we have used lesser blocks that would help us to reduce the time !

 

However i would also suggest to do not write - "cachable = false" in the layout file , that would also not caching your store and reduce the performance !

 

Here is the helpful guideline , which help you to optimize TTFB - https://www.goivvy.com/blog/magento-2-ttfb-optimization

 

This is for overall website performance - https://www.goivvy.com/blog/speed-up-magento

 

Hope it helps !

if issue solved,Click Kudos & Accept as Solution