Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-41811

Load admin menus using AJAX when not on admin pages

    XMLWordPrintable

Details

    • MOODLE_25_STABLE
    • MOODLE_26_STABLE
    • wip-mdl-41811-new
    • Hide
      1. Log in as admin
      2. Make sure site admin navigation is loaded
      3. Go to course
      4. Make sure you can see site admin node
      5. Click on site admin node and make sure it gets loaded via ajax.
      6. Click on notifications and make sure site admin node is populated.
      7. Test different area in admin and no admin page and try make sure on admin pages site admin node is loaded by default and on non-admin pages it gets loaded via ajax.
      Show
      Log in as admin Make sure site admin navigation is loaded Go to course Make sure you can see site admin node Click on site admin node and make sure it gets loaded via ajax. Click on notifications and make sure site admin node is populated. Test different area in admin and no admin page and try make sure on admin pages site admin node is loaded by default and on non-admin pages it gets loaded via ajax.
    • 20
    • BACKEND Sprint 6

    Description

      Not loading plugin's setting under Site administration improve performance for admin/manager's.

      Without plugin settings loaded

      1.21122 secs 
      RAM: 94.5MB 
      RAM peak: 95.6MB 
      Included 292 files 
      Load average: 0.58
      Session: 33.3KB
      

      With plugins settings loaded

      1.809636 secs
      RAM: 110.9MB 
      RAM peak: 112MB 
      Included 406 files 
      Load average: 0.36 
      Session: 33.3KB
      

      This can be easily observed by adding following code in admin/settings/plugins.php

      //    require_once("$CFG->libdir/pluginlib.php");
      //    $allplugins = plugin_manager::instance()->get_plugins();
          $allplugins = array('mod' => array(),
              'format' => array(),
              'block' => array(),
              'message' => array(),
              'auth' => array(),
              'enrol' => array(),
              'auth' => array(),
              'repository' => array(),
              'webservice' => array(),
              'editor' => array(),
              'filter' => array(),
              'qtype' => array(),
          );
      

      Attachments

        Issue Links

          Activity

            People

              rajeshtaneja Rajesh Taneja
              rajeshtaneja Rajesh Taneja
              Petr Skoda Petr Skoda
              Dan Poltawski Dan Poltawski
              Jason Fowler Jason Fowler
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Sujith Haridasan, Matteo Scaramuccia, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                18/Nov/13