craftcms / commerce

Fully integrated ecommerce for Craft CMS.
https://craftcms.com/commerce
Other
219 stars 170 forks source link

[5.x]: Commerce slows down Craft for 300-400% #3481

Closed wmdhosting closed 4 months ago

wmdhosting commented 5 months ago

What happened?

Description

Testing Commerce.. now and what i see when i enable Commerce
All Pages non related to Commerce , Section index pages. entries and so on.. load much slower 300-400% .. than without commerce..

2024-05-06_09-45-33 2024-05-06_09-48-43

when i disable commerce it.. all pages load quite fast...

Craft CMS version

5.1.1

Craft Commerce version

5.0.3

PHP version

8.2.16

Operating system and version

CloudLinux v8.9.0

Database type and version

MySQL 8.0.36

Image driver and version

No response

Installed plugins and versions

-

linear[bot] commented 5 months ago

PT-1700 [5.x]: Commerce slows down Craft for 300-400%

lukeholder commented 5 months ago

I have just attempted to reproduce and couldn't see much difference:

CleanShot 2024-05-06 at 16 22 37@2x

CleanShot 2024-05-06 at 16 24 34@2x

But my site could be totally different to yours.

Could you possibly send to support@craftcms.com the following:

DB backup composer.json composer.lock config/project

...and we will see if there is anything obvious going on. Thanks.

nfourtythree commented 4 months ago

Hi @wmdhosting

Thank you for reporting this. We managed to track down a performance improvement using the files you sent.

We have pushed a fix for this which will be included in the next release of Commerce 5.

To get this early, change your craftcms/commerce requirement in your project's composer.json to:

"require": {
  "craftcms/commerce": "5.x-dev#3815a75e8e9f4c515a7c098a547282a42ca3425d as 5.0.6",
  "...": "..."
}

Then run composer update.

lukeholder commented 4 months ago

5.0.7 is now out with this fix! Thanks.