admin settings why reading all settings tree : performance problems

admin settings why reading all settings tree : performance problems

بواسطة - Céline Perves
عدد الردود: 1
صورة Core developers صورة Particularly helpful Moodlers صورة Plugin developers

Hello,

while customizing our plateform on moodle 2.4.x, We,ve got big performance troubles with admin settings pages due to the following facts :

  • while calling admin/settings.php for a given section code is loading all setting tree threw admin_get_root (line 18), so pass to all settings pages of all plugins
  • in two of this settings page, the method make_category_list is called one or more time

since we have a big amount of categories and a structuer with parents (depth 3), loading a setting page became very too long

My question , is it absolutely obvious to read all setting tree, can't we load a partial tree?

Thank you

Céline

متوسط التقييمات: -
رداً على Céline Perves

Re: admin settings why reading all settings tree : performance problems

بواسطة - Tim Hunt
صورة Core developers صورة Documentation writers صورة Particularly helpful Moodlers صورة Peer reviewers صورة Plugin developers

It only does this  if you are logged in as admin.

If you are using a php accellerator, including all the settings.php is not that big a deal.

Calling a method like make_category_list in a settings.php file is stupid, and a bug, and should not be done. If it is not already in the tracker, please report it. Ah, I see you did: MDL-39376 مبتسم