craftcms / cms

Build bespoke content experiences with Craft.
https://craftcms.com
Other
3.22k stars 626 forks source link

Upgrading craftcms causes the cms system to load and save very slowly #10759

Closed dsfofwuc closed 2 years ago

dsfofwuc commented 2 years ago

Description

We upgraded from craftcms3.4 and craft-neo2.5.10 to craftcms3.7.30 and neo2.12.5 and found some problems. After the upgrade,but the craftcms page is very slow to load, save data is also very slow and save Entries 504 time out,We have set php.ini memory_limit=-1, max_execution_time=120.

Steps to reproduce

1.upgrade craftcms

Additional info

brandonkelly commented 2 years ago

Draft and revision creation is known to slow the entry editing experience down a bit – see the discussion at #9802. You can opt out of automatic draft creation by disabling the autosaveDrafts config setting. And you can also consider disabling versioning from your sections’ settings, if it’s not necessary.

Good news is that both draft and revision creation are much faster in Craft 4 (see #10577 + #10589). It’s currently in beta, and the first stable release will be in just a few weeks, on May 4.

dsfofwuc commented 2 years ago

@brandonkelly When saving the entry, 504 will appear in about 1 minute, and it will be refreshed and saved, which will affect our work efficiency; this has always been the case after I upgraded, and I have tried various php and nginx configurations. suggestion, thanks

angrybrad commented 2 years ago

@dsfofwuc If you want to write into support@craftcms.com, we can try to help you get past the 60-second timeout in your environment as a stop-gap until you're able to upgrade to Craft 4.

dsfofwuc commented 2 years ago

@angrybrad Can you give me some ways online? The project is now online, it is very urgent, thank you

brandonkelly commented 2 years ago

@dsfofwuc It is going to depend on your environment. Please email support@craftcms.com.