Make Craft CMS 4 faster #12118
Replies: 5 comments 10 replies
-
Sidebar slideout to edit entry also is slow, user must wait 2-3 secs to see output data. Not so acceptable for non-dev users Registrazione.schermo.2022-10-13.alle.17.39.54.mov |
Beta Was this translation helpful? Give feedback.
-
In general Craft 4 is faster than Craft 3. One case where it might not be is when Dev Mode is enabled, though. Is that the case here? If so try disabling it. |
Beta Was this translation helpful? Give feedback.
-
I've noticed a significant slowdown in TTFB with sites updated to Craft 4 as well. Here's one very simple site before: https://www.webpagetest.org/result/221103_AiDcQC_BPV/ and after: https://www.webpagetest.org/result/221103_AiDcNV_C8S/ Other Craft 4 sites I have on a completely different server demonstrate the same TTFB slowdown, even after stripping a page right back while testing. Curiously this wasn't the case with v4 sites initially, here's four very different sites that suddenly slowed https://media.yep.digital/kxFFwV I've tried everything from upgrading the server to building a new project from scratch and deploying to the same server. All my Craft 4 sites just seem to be slower. I'll get in touch with support with a copy of a site, logs, db dump, etc |
Beta Was this translation helpful? Give feedback.
-
For a while now I was also under the impression that the entry index in the cp of Craft 4 was a little sluggish. I hadn't done any measurements but I was seeing the loading "spinner" for longer than I would like. I'm not sure if this was the case from the initial 4.0 version or something changed in later versions. Anyhow, I just upgraded a Craft 3 site and went on to test the 3 and 4 versions side by side. Just the entry index, since this is where I'm experiencing a slower than desired performance. The load speed as measured was just a little worse in Craft 4, but what is of more concern is the time it takes to visually populate the index (so this is on top of the initial page load). There is a noticeable difference in favour of Craft 3 without needing to see the measured page speed. Here is Craft 3.7.59: craft3.mp4And here is Craft 4.3.1 craft4.mp4Dev Mode was off in both cases. As you can see, I just kept refreshing the same index on both sites. In Craft 3 the index populates almost instantly. In Craft 4 you can see the spinner icon for a second or so. It's not the end of the world, but it is noticeable and prevents the cp from feeling snappy. Keep in mind that my own observations are exclusively about the entry index. Haven't measured, but also haven't noticed, a perfomance degradation in any other part of the cp, or in the front end. |
Beta Was this translation helpful? Give feedback.
-
Craft 4.3.4 reverted a change that turned out to be the cause of a lot of performance problems in Craft 4. (991396e) |
Beta Was this translation helpful? Give feedback.
-
Hi guys, l'es discuss. On every craft 4+ version I found speed leaks
Here is craft 3.7 with 1200+ entries (blog entries, which have lots of categories, tags, etc...)

Here is asimple craft 4.2 with 29 entries (simple pages and service lists etc...)

As you can see craft cms 4 response time is 3x times higher than 3
Beta Was this translation helpful? Give feedback.
All reactions