Improve admin course list, user list page speed loading.

Fix session block when loading admin/index.php and changing the page.
When loading a new page, the new page is waiting that the session is
unblock. version_check() is slow because it check the version of
Chamilo.
pull/2487/head
jmontoyaa 8 years ago
parent abd4f4b27c
commit c5120d60db
  1. 3
      main/inc/ajax/admin.ajax.php

@ -3,7 +3,6 @@
/**
* Responses to AJAX calls
*/
require_once __DIR__.'/../global.inc.php';
api_protect_admin_script();
@ -29,6 +28,8 @@ switch ($action) {
}
break;
case 'version':
// Fix session block when loading admin/index.php and changing page
session_write_close();
echo version_check();
break;
case 'get_extra_content':

Loading…
Cancel
Save