Cache defines http://virtualmin.com/node/19782
authorJamie Cameron <jcameron@webmin.com>
Thu, 13 Oct 2011 04:45:05 +0000 (21:45 -0700)
committerJamie Cameron <jcameron@webmin.com>
Thu, 13 Oct 2011 04:45:05 +0000 (21:45 -0700)
apache/apache-lib.pl

index b728ac5..9c3b6fe 100755 (executable)
@@ -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;
 }