diff options
author | Eric Wong <e@80x24.org> | 2015-08-22 05:06:57 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-08-22 05:09:14 +0000 |
commit | 797ba8046562864a09ed36e6040055babb536615 (patch) | |
tree | 2c9edb80334d7f7b22dc9fdd7f13a744404614d8 /public-inbox.cgi | |
parent | 118137a6be119eca4c1a3ba6576c3a279492aa92 (diff) | |
download | public-inbox-797ba8046562864a09ed36e6040055babb536615.tar.gz |
Hopefully this saves us some memory with CoW on *nix.
Diffstat (limited to 'public-inbox.cgi')
-rwxr-xr-x | public-inbox.cgi | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/public-inbox.cgi b/public-inbox.cgi index 63663f32..75d510c0 100755 --- a/public-inbox.cgi +++ b/public-inbox.cgi @@ -4,13 +4,16 @@ use strict; use warnings; use IO::Handle; -require PublicInbox::WWW; +use PublicInbox::WWW; use CGI qw/-nosticky/; our $NO_SCRIPT_NAME; our %HTTP_CODES; BEGIN { $NO_SCRIPT_NAME = 1 if $ENV{NO_SCRIPT_NAME}; - CGI->compile if $ENV{MOD_PERL}; + if ($ENV{MOD_PERL}) { + CGI->compile; + PublicInbox::WWW->preload; + } %HTTP_CODES = ( 200 => 'OK', |