Kirby speed issue (since 2.3 ?)

Yeah, the Kirby 2.3 version is considerably slower.

I feel that too at the beggining but now it seems more random, though the 2.3 seems to have serious slow bumps sometimes (more than the 2.2 version). I will try with 2.3 fresh install soon.

Seems there is a different size of first background image. One is 1500px width, the other is 1000 px width

Background images are random, also I think that the weight of files are not in question here as the problem seems to be on the GET or Time To First Byte.

I use a lot of ->shuffle() method, maybe the new kirby struggle with it ?

Do you use thumbs for the background images? Are they all pregenerated?

For the hero image on home I donā€™t use thumb:
<section id="banner" style="background-image:url('<?php echo page('randomitems')->images()->shuffle()->first()->url();?>')">

For project images I use thumbs but Iā€™ve pre-generated them before giving you the links. Some thumbs of random projects have to be generated but some pages with same content (like about, publication, portfolio, side project page) are slow too.

I know that generating thumbs halt the loading, but I donā€™t think it is since thumbs are already generated for principal pages.

In my opinion / test Kirby 2.3 was slower :slight_smile: ā€¦weird, issue - though!

Here are multiples kirby versions on 2 differents hosters:

http://judbd.com -> reference

http://253f26ccca.url-de-test.ws/kirbyspeedtest/judbd/ -> The site as it is on judbd.com
http://253f26ccca.url-de-test.ws/kirbyspeedtest/230 -> Site on a fresh 2.3.0 install
http://253f26ccca.url-de-test.ws/kirbyspeedtest/223 -> Site on a fresh 2.2.3 install
http://253f26ccca.url-de-test.ws/kirbyspeedtest/222 -> Site on a fresh 2.2.2 install

http://judbd.desav.eu/kirbyspeedtest/judbd -> The site as it is on judbd.com
http://judbd.desav.eu/kirbyspeedtest/230 -> Site on a fresh 2.3.0 install
http://judbd.desav.eu/kirbyspeedtest/223 -> Site on a fresh 2.2.3 install
http://judbd.desav.eu/kirbyspeedtest/222 -> Site on a fresh 2.2.2 install

Now I canā€™t tell if the problem is still here or not (the ā€œjudbdā€ version have to be slower)

I have purged the ā€œthumbsā€ folder on judbd before uploading thoses tests, maybe that was the issue ?

Iā€™m not entirely sure with that, but didnā€™t the thumbnail names change with Kirby 2.3? Maybe that was an issue and the thumbnails were created again every time the page loaded?

Indeed the thumbnail names changed with 2.3, so purging the thumb folder definitely is a good step to get a better picture. It looks like in your last test the versions are pretty equally fast. So Iā€™m quite sure it was a thumbnail issue.

1 Like

Yes but if the thumnails are not in use, itā€™s just useless jpg in folder right ? How it can have impact ?

I will purge the thumbs folder of production server and see.

Thank you!

Purge of thumbnails change nothing, I made a fresh install (kirby 2.3.0 in folder, then copy of my /site /assets and /content) on my production serveur and it seems to work better, as @Thiousi suggested. Not sure if it was kirby or my hoster.

I made a fresh install on my test server and githug confirms files are the same than before, so I donā€™t know how a ā€œfreshā€ install could change anything :confused:

Iā€™ll let you know if I encouter others speed issues.

Note : Iā€™m going to erase the tests domains to avoid duplicate content.

Thanks all for your help.

Did you make sure that you donā€™t have any permissions issues with the thumb folder or the files in it?

1 Like

Yeah the mistery remains here too. The speed issue had transfered to the panel too with the page saving taking virtually forever on the progress bar in the panel but the saving actually happening as fast as usual. I could refresh the front-end and see changes when the pannel was still spinning for minutesā€¦

I really tried to find a replicable issue but havenā€™t posted here yet as Iā€™m just dumfounded as to how it came about and how I fixed it.

Glad to know you got it all sorted out though !

@bastianallgeier yes, new thumbnails are created fine.

https://getkirby.com/changelog/kirby-2-3-0 says:

After an update from Kirby 2.x.x to Kirby 2.3.0 ALL thumbs are build new!
This is until all thumbs have been build by visiting all webpages with thumbsā€¦

Hint:
I have done the update locally, then done the building of the thumbs there, upload the thumbs to the webserver and then done the update on the webserver.

Yes but it wasnā€™t the issue since I regenerate them before testing.

How did you regenerate them?
All thumbs changed the filename and the path from the old Kirby version to the newā€¦

I purged the thumb folder and visit all pages one by one.

1 Like

I had your same issue with the panel taking long to save pages. In my case it was because of some hooks happening on page update (Panel page update ( Hook )). It seems to be a bug. I applied this fix and it worked good again https://github.com/getkirby/kirby/pull/452/files