A customer has a page with lots of news (around 300) and success story (around 100) items. These are two different blueprints and two different folders, but it is allowed to move items from news to success stories.
The opening of the “move”-dialog takes around 5 seconds, the opening of the news children takes around 30 seconds and success stories children around 10.That’s the time it takes for “/panel/site/tree?move=…” to load. That’s the time it takes for “/panel/site/tree?move=…” to load.
Does anyone have an idea where to look for this bottleneck?
Thanks!
Thanks a lot for your reply!
I’ve found the problem: in this installation we have a folder “global-images” because the customer wanted to have a image library. That folder is filled with around 700 images.
If I remove this folder everything is fine. With this folder the dialog is really slow.
You could make a custom model for that “image pool” page and have it set isListable to false (docs). That should remove it from the dialog list (route: site/tree)
BUT there might be side effects to this. like it not appearing anywhere in the panel. I did not fully test that myself.
<?php
use Kirby\Cms\Page;
// NOTE: Imagepool should be whatever template you are using
// like content/all-images/imagepool.txt
class ImagepoolPage extends Page
{
public function isListable(): bool
{
return false;
}
}