use new method to update the auto loader cache
This commit is contained in:
parent
2765d34ae2
commit
02b95194b7
|
|
@ -141,9 +141,6 @@
|
||||||
fclose($file_handle);
|
fclose($file_handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
//include files
|
|
||||||
require dirname(__DIR__, 2) . "/resources/require.php";
|
|
||||||
|
|
||||||
//check the permission
|
//check the permission
|
||||||
if(defined('STDIN')) {
|
if(defined('STDIN')) {
|
||||||
$display_type = 'text'; //html, text
|
$display_type = 'text'; //html, text
|
||||||
|
|
@ -177,11 +174,13 @@
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
//always update the auto_loader cache just-in-case the source files have updated
|
//always update the now global autoload cache just-in-case the source files have updated
|
||||||
$auto_loader = new auto_loader();
|
$autoload->update();
|
||||||
$auto_loader->reload_classes();
|
|
||||||
$auto_loader->update_cache();
|
//trigger clear cache for any classes that require it
|
||||||
$auto_loader->clear_cache();
|
foreach ($autoload->get_interface_list('clear_cache') as $class) {
|
||||||
|
$class::clear_cache();
|
||||||
|
}
|
||||||
|
|
||||||
//get the version of the software
|
//get the version of the software
|
||||||
if ($upgrade_type == 'version') {
|
if ($upgrade_type == 'version') {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue