mirror of
https://github.com/e107inc/e107.git
synced 2025-04-21 13:11:52 +02:00
Improve speed in admin area. Clear caching only on admin home page and e107 update page.
This commit is contained in:
parent
3bc98186a9
commit
6fb33e7cad
@ -1535,7 +1535,9 @@ $dbg->logTime('Load Libraries');
|
||||
//$startTime = microtime(true);
|
||||
if(deftrue('e_ADMIN_AREA'))
|
||||
{
|
||||
e107::getTheme('current', true)->loadLibrary();
|
||||
$clearThemeCache = (deftrue('e_ADMIN_HOME', false) || deftrue('e_ADMIN_UPDATE', false));
|
||||
e107::getTheme('current', $clearThemeCache)->loadLibrary();
|
||||
unset($clearThemeCache);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -8,6 +8,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
define('e_ADMIN_HOME', true); // used by some admin shortcodes and class2.
|
||||
require_once('../class2.php');
|
||||
|
||||
|
||||
@ -70,7 +71,7 @@ if(in_array($pref['adminstyle'], array('infopanel', 'flexpanel')))
|
||||
//e107::getSession()->clear('addons-update-status');
|
||||
//e107::getSession()->set('addons-update-checked',false); // set to recheck it.
|
||||
|
||||
define('e_ADMIN_HOME', true); // used by some admin shortcodes.
|
||||
|
||||
|
||||
require_once(e_ADMIN.'boot.php');
|
||||
require_once(e_HANDLER.'upload_handler.php');
|
||||
|
@ -15,6 +15,7 @@
|
||||
*
|
||||
*/
|
||||
define("e_MINIMAL",true);
|
||||
define('e_ADMIN_UPDATE', true); // used in class2.php
|
||||
require_once ("../class2.php");
|
||||
|
||||
// include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/admin/lan_'.e_PAGE);
|
||||
|
Loading…
x
Reference in New Issue
Block a user