Foreach loop with more than 50 results hangs up the system

I thought you were refering to this. Checkboxes creating a funny loop with input values (Possible Bug) or Improvement

Which from here. I use the plugin.

Then run the plugin

class MyPlugin {

   static function getpermissionslist() {
       $array = array('green' => 'blue');
       print_r($array);
}

}

in yaml I do like on the other page and also use the plugin on the other page. If I change this to radio button the array only returns once.

It’s like something is hitting this multiple times causing it to loop the array and that’s what’s slowing down the return time.