Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 31200 invoked from network); 2 Jun 2006 17:43:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Jun 2006 17:43:20 -0000 Received: (qmail 85333 invoked by uid 500); 2 Jun 2006 17:43:13 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 85316 invoked by uid 500); 2 Jun 2006 17:43:13 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 85304 invoked by uid 99); 2 Jun 2006 17:43:13 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Jun 2006 10:43:13 -0700 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: 207.114.11.197 is neither permitted nor denied by domain of perrin@elem.com) Received: from [207.114.11.197] (HELO ns1.plusthree.com) (207.114.11.197) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Jun 2006 10:43:11 -0700 Received: from [10.0.1.201] ([69.10.70.170]) (authenticated bits=0) by ns1.plusthree.com (8.13.1/8.13.1) with ESMTP id k52Hgj1Q021605 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Fri, 2 Jun 2006 13:42:46 -0400 Subject: Re: Using PerlSetVar in virtual environments From: Perrin Harkins To: Will Fould Cc: modperl@perl.apache.org In-Reply-To: <4b3372230606021034o36175abfm730a26cc6b710113@mail.gmail.com> References: <4b3372230606021034o36175abfm730a26cc6b710113@mail.gmail.com> Content-Type: text/plain Date: Fri, 02 Jun 2006 13:42:49 -0400 Message-Id: <1149270169.2875.25.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 (2.2.3-4.fc4) Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Fri, 2006-06-02 at 10:34 -0700, Will Fould wrote: > I'm wondering if my trouble is from my use of 'require' Most likely. You didn't show us what's in the required file, but I'm guessing it just sets a bunch of variables. If you really want this to load that file on every request, change require to "do" instead. A better way is to load all the data into a hash and then use something from the PerlSetVar as an index to tell which data in the hash to use for this request. That avoids reloading the file over and over. - Perrin