projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e6d5df
)
Cache defines http://virtualmin.com/node/19782
author
Jamie Cameron
<jcameron@webmin.com>
Thu, 13 Oct 2011 04:45:05 +0000
(21:45 -0700)
committer
Jamie Cameron
<jcameron@webmin.com>
Thu, 13 Oct 2011 04:45:05 +0000
(21:45 -0700)
apache/apache-lib.pl
patch
|
blob
|
history
diff --git
a/apache/apache-lib.pl
b/apache/apache-lib.pl
index
b728ac5
..
9c3b6fe
100755
(executable)
--- a/
apache/apache-lib.pl
+++ b/
apache/apache-lib.pl
@@
-1723,6
+1723,9
@@
return &unique(@rv);
sub get_httpd_defines
{
local ($auto) = @_;
+if (@get_httpd_defines_cache) {
+ return @get_httpd_defines_cache;
+ }
local @rv;
if (!$auto) {
push(@rv, keys %httpd_defines);
@@
-1769,6
+1772,7
@@
foreach my $md (split(/\t+/, $config{'defines_mods'})) {
foreach my $d (split(/\s+/, $config{'defines'})) {
push(@rv, $d);
}
+@get_httpd_defines_cache = @rv;
return @rv;
}