mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-03-19 15:02:14 +00:00
Move settings cache flush after database save (#7527)
* Move settings cache flush after database save * Improve cache flush on flush cache button
This commit is contained in:
@@ -45,8 +45,19 @@ $text = $language->get();
|
||||
$search = $_REQUEST['search'] ?? '';
|
||||
$domain_uuid = $_GET['id'] ?? null;
|
||||
|
||||
//reload autoloader
|
||||
$autoload->update();
|
||||
|
||||
//reload default settings
|
||||
settings::clear_cache();
|
||||
|
||||
//reset others
|
||||
$classes_to_clear = array_filter($autoload->get_interface_list('clear_cache'), function ($class) { return $class !== 'settings'; });
|
||||
foreach ($classes_to_clear as $class_name) {
|
||||
$class_name::clear_cache();
|
||||
}
|
||||
|
||||
//reset domains
|
||||
$domain = new domains();
|
||||
$domain->set();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user