diff options
author | Renato Botelho <renato@netgate.com> | 2017-08-16 17:18:11 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2017-08-16 17:24:34 -0300 |
commit | 4531456df550decee3ea3aff1b54e5f7099b9695 (patch) | |
tree | 92d0be46728c59d1824b5dd8167fc32c7c86cb35 /src | |
parent | edbca48045a1203be16b31126e7a30df92466c5b (diff) | |
download | pfsense-4531456df550decee3ea3aff1b54e5f7099b9695.zip pfsense-4531456df550decee3ea3aff1b54e5f7099b9695.tar.gz |
Speedup package related calls to get_pkg_info() since now we have a script that update metadata periodically
Diffstat (limited to 'src')
-rw-r--r-- | src/usr/local/www/pkg_mgr.php | 3 | ||||
-rw-r--r-- | src/usr/local/www/widgets/widgets/installed_packages.widget.php | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/usr/local/www/pkg_mgr.php b/src/usr/local/www/pkg_mgr.php index b3404e8..35f2df9 100644 --- a/src/usr/local/www/pkg_mgr.php +++ b/src/usr/local/www/pkg_mgr.php @@ -84,8 +84,7 @@ if (($_REQUEST) && ($_REQUEST['ajax'])) { // The content for the table of packages is created here and fetched by Ajax. This allows us to draw the page and display // any required messages while the table is being downloaded/populated. On very small/slow systems, that can take a while function get_pkg_table() { - - $pkg_info = get_pkg_info(); + $pkg_info = get_pkg_info('all', true, false); if (!$pkg_info) { print("error"); diff --git a/src/usr/local/www/widgets/widgets/installed_packages.widget.php b/src/usr/local/www/widgets/widgets/installed_packages.widget.php index 5515969..7ebe1cc 100644 --- a/src/usr/local/www/widgets/widgets/installed_packages.widget.php +++ b/src/usr/local/www/widgets/widgets/installed_packages.widget.php @@ -67,7 +67,7 @@ require_once("/usr/local/www/widgets/include/installed_packages.inc"); require_once("pkg-utils.inc"); if ($_REQUEST && $_REQUEST['ajax']) { - $package_list = get_pkg_info(); + $package_list = get_pkg_info('all', true, true); $installed_packages = array_filter($package_list, function($v) { return (isset($v['installed']) || isset($v['broken'])); }); |