Forum PrestaShop

Il Forum di PrestaShop è lo spazio in cui puoi condividere con la comunità di PrestaShop consigli pratici sull'e-commerce e trovare la risposta a tutte le domande tecniche e funzionali.

Forum PrestaShop

Jump to content

 

Poor performance issues, FO only?

29 replies to this topic
#1
Ox40

    PrestaShop Addict

  • Members
  • PipPipPip
  • 500 posts
I have recently noticed a HORRIBLE lack of performance in the front office, on average around 9 seconds to create my home page ( http://tennieshardware.com ). I have noticed that the back end has an average creation time of about .259 seconds... whats the deal here? Is there anything I can do to increase performance?
Pursuant Solutions, programmers dedicated to the pursuit.

#2
Damien Metzger

    PrestaShop Fanatic

  • PrestaTeam
  • 1243 posts
Hi,

The module "blockcategories" need a fix, you can reduce the maximum depth to increase the performance.
As for the back end, I've an average 0.075ms on my personnal computer, and 0.125ms for the product edition. Since my computer is an old, cheap one (ok not so old), I think your hosting company need to do some shopping :p

Overall performance is a little improved with the 1.1.

#3
daYmo

    PrestaShop Apprentice

  • Members
  • PipPip
  • 378 posts
I tested the blockcategories module from v1.1 but no visible peformance improvement.
Not that much with 150 categories...
H T T P : / / W W W . M U S I C D E S T O C K . F R
H T T P : / / W W W . J O O N G L E B O O G I E . F R

La norme W3C est à la conception d'un site web ce que la norme ISO est au fonctionnement d'une entreprise.

#4
presta-dyr

    PrestaShop Fanatic

  • Moderators
  • 1045 posts
I know this is an old thread, but it's still relevant.

I have a setup with more than 800 categories and sub-categories. The load time was more than 20 seconds on my (slow) server. I discovered that it was blockcategories that used most of the time.

The module blockcategories makes heavily use of smarty and recursively includes the tpl tree file. This is a bad idea performance wise.

I have rewritten the tree handling so it's done in PHP instead. This improved the performance significantly (less than 0.1 second on my server now).

I have attached my module.

/Kjeld

Attached Files



#5
SoloKazama

    PrestaShop Newbie

  • Members
  • Pip
  • 3 posts
presta-dyr - thanx for this!

I have another issue and the fix:

When u have many categories mixed with products, when u change product category on BO then load time is like 20-30 secs (on tested shop).
They fixed it in presta 1.3 and you can use classes/AdminTab.php from 1.3 in version 1.2.5. We tested it, and all works fine.

#6
Dahl99

    PrestaShop Apprentice

  • Members
  • PipPip
  • 134 posts
Hi presta-dyr,

I used the file you uploaded to help with the shop loading speed but did not notice any difference. If I want to revert back to the original blockcategories can I just delete the folder and replace it with the original?

Cheers

#7
presta-dyr

    PrestaShop Fanatic

  • Moderators
  • 1045 posts
If you only have a few categories (and sub-categories), you won't notice the difference.

Yes, you can just restore the original module.

/Kjeld

#8
Dahl99

    PrestaShop Apprentice

  • Members
  • PipPip
  • 134 posts
Thanks for swift reply.

#9
scanreg

    PrestaShop Newbie

  • Members
  • Pip
  • 18 posts

From 1266716877:

I know this is an old thread, but it's still relevant.

I have a setup with more than 800 categories and sub-categories. The load time was more than 20 seconds on my (slow) server. I discovered that it was blockcategories that used most of the time.

The module blockcategories makes heavily use of smarty and recursively includes the tpl tree file. This is a bad idea performance wise.

I have rewritten the tree handling so it's done in PHP instead. This improved the performance significantly (less than 0.1 second on my server now).

I have attached my module.

/Kjeld


Does this relate to the latest 1.3x versions?

Thanks :-)

#10
rocky

    PrestaShop Superstar

  • US Moderators
  • 9988 posts
No, the performance of the category module and other areas has been improved in Prestashop v1.3. We'll need to re-evaluate the performance when v1.3 final is released and see what performance issues remain.

EDIT: Turns out that the performance of the category module hasn't been improved in PrestaShop v1.3.
Check out Nethercott Constructions for PrestaShop guides and modules. Like us on Facebook for news updates.

#11
scanreg

    PrestaShop Newbie

  • Members
  • Pip
  • 18 posts
Ah, great, thanks so much :-)

#12
presta-dyr

    PrestaShop Fanatic

  • Moderators
  • 1045 posts
I just tested version 1.3.0.10 with a large category tree. It looks like nothing has changed (it's very slow). But my module works fine (and fast) with 1.3.0.10.

/Kjeld

#13
deech123

    PrestaShop Apprentice

  • Members
  • PipPip
  • 149 posts
presta-dyr,

what is the difference between the original and yours?
In the backoffice I see no more other options...or did you use different code?
www.degrootste.be
powered by PrestaShop

#14
presta-dyr

    PrestaShop Fanatic

  • Moderators
  • 1045 posts
It is only a performance improvement. I went from 20 s til 0.1 s load time in an example with 800 categories and sub-categories.

/Kjeld

#15
deech123

    PrestaShop Apprentice

  • Members
  • PipPip
  • 149 posts
presta-dyr,

I did the test with your module.
I have over 1200 categories.
well before (with the original module) I had over 32 seconds to load a page.
now I have it done in max 1 second.
wonderfull

I will test further

thx
www.degrootste.be
powered by PrestaShop

#16
Vaidas

    PrestaShop Apprentice

  • Members
  • PipPip
  • 74 posts
Hi, i testesd this modul, but nothing changed. My test shop url http://www.7parts.lt/PrestaShop . There is over 20.000 categories,subcategories and subsubcategories, but there is now products. Is there any solution to make shop faster? Now the loading time is about 27 seconds

Sorry for my english

thank's

#17
rocky

    PrestaShop Superstar

  • US Moderators
  • 9988 posts
I've got a performance tips page on my website that may help you increase the speed of your website.
Check out Nethercott Constructions for PrestaShop guides and modules. Like us on Facebook for news updates.

#18
presta-dyr

    PrestaShop Fanatic

  • Moderators
  • 1045 posts
Try to disable blockcategories and see if indeed this is the one eating your performance.

/Kjeld

#19
Vaidas

    PrestaShop Apprentice

  • Members
  • PipPip
  • 74 posts
When i disable blockategories it works ok. my shop www.7parts.lt with less categories works i think ok, but test shop www.7parts.lt/PrestaShop with 20.000 categories is very slow

#20
presta-dyr

    PrestaShop Fanatic

  • Moderators
  • 1045 posts
I tried fetching your page with cURL. It takes 6 s to get it (still very long time). So if it takes 27 s for you to get the page it is probably the rendering in your browser that takes a lot of time.

/Kjeld