Open artisanbarista opened 3 months ago
When I have updated my multisite with 15 locales and a lot of content the more that 1000+ entries. The performance decreased to 80+ seconds on the first load when using v4.51.0 and up from the 2.5 seconds previous versions prior v4.51.0 did in the first load. (I even updated to statamic v5.4.0 and still the performance issue persists).
NOTE: This slowness happens only in the FIRST load, what I mean by first load:
How long did the first load take before updating to 4.51.0?
When I have updated my multisite with 15 locales and a lot of content the more that 1000+ entries. The performance decreased to 80+ seconds on the first load when using v4.51.0 and up from the 2.5 seconds previous versions prior v4.51.0 did in the first load. (I even updated to statamic v5.4.0 and still the performance issue persists). NOTE: This slowness happens only in the FIRST load, what I mean by first load:
How long did the first load take before updating to 4.51.0?
On statamic 4.44.0 the first load is 2.3 seconds.
Are you able to provide access to the site?
Bug description
This issue is similar to #9971 and it was introduced in #5502.
When I have updated my multisite with 15 locales and a lot of content the more that 1000+ entries. The performance decreased to 80+ seconds on the first load when using v4.51.0 and up from the 2.5 seconds previous versions prior v4.51.0 did in the first load. (I even updated to statamic v5.4.0 and still the performance issue persists).
NOTE: This slowness happens only in the FIRST load, what I mean by first load:
run:
php artisan cache:clear
php please stache:warm
and then visit a page. It will take ages to load but after it loads then everything is loading fast as usual, arount 600ms per page.
I have noticed that if I comment this line of code in vendor/statamic/cms/src/Entries/Entry.php line 60
use HasDirtyState;
EntryThe issue is fixed in all versions after v4.51.0 and no slowness happens.
How to reproduce
Measure it with v4.50.0 and v4.51.0 or the newest v5.4.0 and see the slowness that happens when HasDirtyState is enabled.
Logs
No response
Environment
Installation
Existing Laravel app
Additional details
No response