X-Git-Url: http://git.shiar.net/perl/plp/.git/blobdiff_plain/b5e0ee87251670be18b2f2fc128a4be0b25ebfb8..0409a4cb0467ceb1c5b4bed6fcb631c026aee9dd:/lib/PLP/Backend/Apache.pm diff --git a/lib/PLP/Backend/Apache.pm b/lib/PLP/Backend/Apache.pm index 62caadc..cd5b16f 100644 --- a/lib/PLP/Backend/Apache.pm +++ b/lib/PLP/Backend/Apache.pm @@ -1,6 +1,7 @@ package PLP::Backend::Apache; use strict; +use warnings; our $VERSION = '1.00'; @@ -44,7 +45,7 @@ sub init { $ENV{PLP_NAME} = $r->uri; - $PLP::use_cache = $r->dir_config('PLPcache') !~ /^off$/i; + $PLP::use_cache = ($r->dir_config('PLPcache') || 'on') !~ /^off$/i; #S $PLP::use_safe = $r->dir_config('PLPsafe') =~ /^on$/i; my $path = $r->filename(); my ($file, $dir) = File::Basename::fileparse($path);