Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wmdhosting opened this issue May 6, 2024 · 4 comments
Closed

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

wmdhosting opened this issue May 6, 2024 · 4 comments

Comments

@wmdhosting
Copy link

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

Copy link

linear bot commented May 6, 2024

@lukeholder
Copy link
Member

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.

@lukeholder lukeholder self-assigned this May 6, 2024
@nfourtythree
Copy link
Contributor

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
Copy link
Member

5.0.7 is now out with this fix! Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants