Return-Path: X-Original-To: apmail-perl-modperl-archive@www.apache.org Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B5B857603 for ; Tue, 26 Jul 2011 14:09:03 +0000 (UTC) Received: (qmail 84624 invoked by uid 500); 26 Jul 2011 14:09:02 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 84506 invoked by uid 500); 26 Jul 2011 14:09:01 -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 84492 invoked by uid 99); 26 Jul 2011 14:09:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jul 2011 14:09:00 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of pharkins@gmail.com designates 209.85.220.177 as permitted sender) Received: from [209.85.220.177] (HELO mail-vx0-f177.google.com) (209.85.220.177) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jul 2011 14:08:55 +0000 Received: by vxh29 with SMTP id 29so616006vxh.22 for ; Tue, 26 Jul 2011 07:08:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=eiUwj/ri79vDYYxlM9lOvgnurS8ISBU67PFyLFV6AZc=; b=lIfN2xDlkjcTV9eyBCl+zUU7C6LbqnwAmF/XoZ2rlzwdprHSweuF6CdXmJI1tdg5zj Co1NN4k79BUDbKFtoeHtZebfvjqkqRQCjtTdrVjufDRwg9X0mUrKfxHKhHbRuKivZOlC 44098A1oRg9y7CHG7DEkJlV9xUtaD6W7URWlA= MIME-Version: 1.0 Received: by 10.220.117.4 with SMTP id o4mr1557774vcq.121.1311689314677; Tue, 26 Jul 2011 07:08:34 -0700 (PDT) Sender: pharkins@gmail.com Received: by 10.220.184.6 with HTTP; Tue, 26 Jul 2011 07:08:34 -0700 (PDT) In-Reply-To: <4E2E780E.9080404@getnet.cz> References: <4E27E71B.8020403@getnet.cz> <4E2884D0.6000503@getnet.cz> <4E29BEC3.1000700@getnet.cz> <4E2E780E.9080404@getnet.cz> Date: Tue, 26 Jul 2011 10:08:34 -0400 X-Google-Sender-Auth: OJREU-UBGKjQztbdQOX6TeThOLc Message-ID: Subject: Re: ModPerl::RegistryLoader From: Perrin Harkins To: =?ISO-8859-2?B?Smn47SBQYXZsb3Zza/0=?= Cc: modperl@perl.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2011/7/26 Ji=C5=99=C3=AD Pavlovsk=C3=BD : > That is probably it, I store db handle in a singleton. > That, unfortunately is something I cannot change easily Apache::DBI should make this unnecessary. You could change your singleton code to DBI->connect every time and it would just pull the cached handle from Apache::DBI. Alternatively, you can try adjusting your code so that it just avoids doing the DBI caching during startup. Look at the Apache::DBI code for an example of how to tell if you're in startup. - Perrin