Checkboxes Slow Performance

Hi,

I’m using checkboxes with multi options for listing registered users (30 users).

Field:

authors:
        label: Authors
        type: checkboxes 
        options: http://www.domain.com/api/authors.json
        columns: 5
        required: true

I disabled query on /api/authors.json and return json string directly for testing as users list like that:

c::set('routes', array(
	array(
		'pattern' => 'api/authors.json',
		'action'  => function() 
		{			
			echo json_encode('{"john-doe":"John Doe","mark-otto":"Mark Otto"}');
			exit;
		},
		'method' => 'GET'
	)
));

But the edit page creating, opening or saving 5-10 seconds.
Other pages or frontend works great.
When i remove the authors field, pages opening/saving/creating works great.

By the way, i tested now on Kirby 2.3.2, there is not any problem.
I guess this issue about 2.4.1 version.

Please give me an idea…

PHP 7.0
Apache 2.4
Kirby 2.4.1

I found this issue: https://github.com/getkirby/panel/issues/998

2 Likes