[otrs-cvs] otrs/scripts apache2-perl-startup.pl,1.58,1.59
"CVS commits notifications of OTRS.org" <[email protected]>
| Newsgroups | gmane.comp.otrs.cvs |
|---|---|
| Message-ID | <[email protected]> |
Comments:
Update of /home/cvs/otrs/scripts
In directory lancelot:/tmp/cvs-serv2407/scripts
Modified Files:
apache2-perl-startup.pl
Log Message:
Added Apache2::RequestRec to the required modules. Reordered and improved documentation slightly.
Author: mg
Index: apache2-perl-startup.pl
===================================================================
RCS file: /home/cvs/otrs/scripts/apache2-perl-startup.pl,v
retrieving revision 1.58
retrieving revision 1.59
diff -2 -u -d -r1.58 -r1.59
--- apache2-perl-startup.pl 13 Dec 2012 14:23:11 -0000 1.58
+++ apache2-perl-startup.pl 4 Jan 2013 13:16:27 -0000 1.59
@@ -2,5 +2,5 @@
# --
# scripts/apache-perl-startup.pl - to load the modules if mod_perl is used
-# Copyright (C) 2001-2012 OTRS AG, http://otrs.org/
+# Copyright (C) 2001-2013 OTRS AG, http://otrs.org/
# --
# $Id$
@@ -25,11 +25,13 @@
use warnings;
-# make sure we are in a sane environment.
+# Make sure we are in a sane environment.
$ENV{MOD_PERL} =~ /mod_perl/ or die "MOD_PERL not used!";
+use Apache2::RequestRec;
+use ModPerl::Util;
+
BEGIN {
# switch to unload_package_xs, the PP version is broken in Perl 5.10.1.
# see http://rt.perl.org/rt3//Public/Bug/Display.html?id=72866
-
$ModPerl::Util::DEFAULT_UNLOAD_METHOD = 'unload_package_xs';
@@ -37,19 +39,12 @@
# apart from that, on Fedora, $0 is not a path which would break OTRS.
# see bug # 8533
-
$0 = '/opt/otrs/bin/cgi-bin/index.pl';
}
-use ModPerl::Util;
-
-# set otrs lib path!
use lib "/opt/otrs/";
use lib "/opt/otrs/Kernel/cpan-lib";
use lib "/opt/otrs/Custom";
-# pull in things we will use in most requests so it is read and compiled
-# exactly once
-
-#use CGI (); CGI->compile(':all');
+# Preload frequently used modules to speed up client spawning.
use CGI ();
CGI->compile(':cgi');
---------------------------------------------------------------------
OTRS mailing list: cvs-log - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/cvs-log
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log