]> git.mjollnir.org Git - moodle.git/commit
blocks/admin_tree: exit early for non-admins
authormartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:22:24 +0000 (07:22 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:22:24 +0000 (07:22 +0000)
commit84a34f6ed33c58e9e348114d75a30eb365d7933e
tree47ecfbfb014aec679a4a1f19efe992c82df7b94c
parentd4c4ecb808614bda71c56b351ff56f4e87092fe2
blocks/admin_tree: exit early for non-admins

Saves >10DBq and 18 includes at the homepage for all nonadmin users.
For non admin users, this makes the homepage _much_ more lightweight.

  Before: inc 101  DBq 51 time 1.2s
  After:  inc  76  DBq 36 time 0.2s

So this commit shaves 1 full second for the non-logged-in homepage.

Still pretty bad on the includes, but shaved a good 25 files and 15 DBqs.
blocks/admin_tree/block_admin_tree.php