mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Add caching to the auto_loader for interfaces (#7320)
* update auto loader to load and cache interfaces * use new method to update the auto loader cache * use new interface * use new interface to trigger a cache flush * update the console upgrade menu * update the missing implements syntax * add the clear_cache to the flush cache button
This commit is contained in:
@@ -101,6 +101,10 @@
|
||||
case "cache-flush":
|
||||
$cache = new cache;
|
||||
$response = $cache->flush();
|
||||
//trigger clear cache for any classes that require it
|
||||
foreach ($autoload->get_interface_list('clear_cache') as $class) {
|
||||
$class::clear_cache();
|
||||
}
|
||||
message::add($response, 'alert');
|
||||
break;
|
||||
case "reloadxml":
|
||||
|
||||
Reference in New Issue
Block a user