mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Remove redundant database objects
This reduces database connections and improves performance.
This commit is contained in:
@@ -14,7 +14,6 @@ if ($domains_processed == 1) {
|
||||
//get the groups
|
||||
$sql = "select * from v_groups ";
|
||||
$sql .= "where domain_uuid is null ";
|
||||
$database = new database;
|
||||
$groups = $database->select($sql, null, 'all');
|
||||
|
||||
//get the dashboard
|
||||
@@ -26,7 +25,6 @@ if ($domains_processed == 1) {
|
||||
$sql .= "cast(dashboard_enabled as text), ";
|
||||
$sql .= "dashboard_description ";
|
||||
$sql .= "from v_dashboard ";
|
||||
$database = new database;
|
||||
$dashboard_widgets = $database->select($sql, null, 'all');
|
||||
unset($sql, $parameters);
|
||||
|
||||
@@ -110,7 +108,6 @@ if ($domains_processed == 1) {
|
||||
|
||||
//save the data
|
||||
if (!empty($array)) {
|
||||
$database = new database;
|
||||
$database->app_name = 'dashboard';
|
||||
$database->app_uuid = '55533bef-4f04-434a-92af-999c1e9927f7';
|
||||
$database->save($array, false);
|
||||
|
||||
Reference in New Issue
Block a user