diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2012-11-16 18:10:32 +0100 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2012-11-16 18:10:32 +0100 |
commit | 5fc1b86cfeeaf5e8e64dfbef3cd94f13a899d696 (patch) | |
tree | 78d6f36b43b9b6349af76fabeb8750af1a89f177 /Bugzilla/Config.pm | |
parent | 7605239f64f0b47fe3e96a9be0e07700b7bb5c7c (diff) | |
download | bugzilla-5fc1b86cfeeaf5e8e64dfbef3cd94f13a899d696.tar.gz bugzilla-5fc1b86cfeeaf5e8e64dfbef3cd94f13a899d696.tar.xz |
Bug 797636: Improve performance for buglists
r=dkl a=LpSolit
Diffstat (limited to 'Bugzilla/Config.pm')
-rw-r--r-- | Bugzilla/Config.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Bugzilla/Config.pm b/Bugzilla/Config.pm index f422de227..219bd6e31 100644 --- a/Bugzilla/Config.pm +++ b/Bugzilla/Config.pm @@ -13,7 +13,6 @@ use strict; use base qw(Exporter); use Bugzilla::Constants; use Bugzilla::Hook; -use Bugzilla::Install::Filesystem qw(fix_file_permissions); use Data::Dumper; use File::Temp; @@ -279,7 +278,10 @@ sub write_params { rename $tmpname, $param_file or die "Can't rename $tmpname to $param_file: $!"; - fix_file_permissions($param_file); + # It's not common to edit parameters and loading + # Bugzilla::Install::Filesystem is slow. + require Bugzilla::Install::Filesystem; + Bugzilla::Install::Filesystem::fix_file_permissions($param_file); # And now we have to reset the params cache so that Bugzilla will re-read # them. |