From 68a18bf55edfd520ec9853550b6d718bfb272788 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Sat, 15 Mar 2008 00:40:49 +0100 Subject: [PATCH] fix setting PLPcache from apache configuration Apache has been split from PLP package, so need to specify variable explicitly. --- PLP/Apache.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PLP/Apache.pm b/PLP/Apache.pm index 6b28f94..5a9745c 100644 --- a/PLP/Apache.pm +++ b/PLP/Apache.pm @@ -41,8 +41,8 @@ sub init { $ENV{PLP_NAME} = $r->uri; - our $use_cache = $r->dir_config('PLPcache') !~ /^off$/i; -#S our $use_safe = $r->dir_config('PLPsafe') =~ /^on$/i; + $PLP::use_cache = $r->dir_config('PLPcache') !~ /^off$/i; +#S $PLP::use_safe = $r->dir_config('PLPsafe') =~ /^on$/i; my $path = $r->filename(); my ($file, $dir) = File::Basename::fileparse($path); chdir $dir; -- 2.30.0