Permalink
Browse files

s/MOD_PERL/PLACK_ENV/g

  • Loading branch information...
1 parent e92394c commit 2b90766cdde52b3b27d22ac9cf4224b8460dbb1b @autarch autarch committed Mar 16, 2012
Showing with 7 additions and 7 deletions.
  1. +2 −2 lib/VegGuide/CachedHierarchy.pm
  2. +4 −4 lib/VegGuide/Config.pm
  3. +1 −1 lib/VegGuide/PerRequestCache.pm
@@ -41,7 +41,7 @@ my %Times;
$class->_iterate_all_nodes();
- _touch_file($f) if $first && $ENV{MOD_PERL};
+ _touch_file($f) if $first && $ENV{PLACK_ENV};
$Meta{$class}{last_build} = ( stat $f )[9];
@@ -339,7 +339,7 @@ sub _check_cache_time {
return if $Checked;
- return unless $ENV{MOD_PERL};
+ return unless $ENV{PLACK_ENV};
my $last_mod = ( stat $Meta{$class}{file} )[9];
View
@@ -46,7 +46,7 @@ use Sys::Hostname qw( hostname );
@Imports = @StandardImports;
push @Imports, 'Static::Simple'
- unless $ENV{MOD_PERL} || __PACKAGE__->Profiling();
+ unless $ENV{PLACK_ENV} || __PACKAGE__->Profiling();
push @Imports, 'StackTrace'
unless __PACKAGE__->IsProduction() || __PACKAGE__->Profiling();
@@ -135,7 +135,7 @@ sub AlzaboRootDir {
{
my %BaseConfig = (
is_production => __PACKAGE__->IsProduction(),
- using_frontend_proxy => ( $ENV{MOD_PERL} ? 1 : 0 ),
+ using_frontend_proxy => ( $ENV{PLACK_ENV} ? 1 : 0 ),
default_view => 'Mason',
@@ -185,7 +185,7 @@ sub AlzaboRootDir {
my $class = shift;
my @loggers;
- if ( $class->IsProduction() && $ENV{MOD_PERL} ) {
+ if ( $class->IsProduction() && $ENV{PLACK_ENV} ) {
require Apache2::ServerUtil;
push @loggers, {
@@ -410,7 +410,7 @@ sub reCAPTCHAPublicKey {
}
}
-if ( __PACKAGE__->IsProduction() && $ENV{MOD_PERL} ) {
+if ( __PACKAGE__->IsProduction() && $ENV{PLACK_ENV} ) {
__PACKAGE__->$_() for qw( ForgotPWSecret MACSecret reCAPTCHAPrivateKey );
}
@@ -6,7 +6,7 @@ use warnings;
my %Cache;
sub Cache {
- return unless $ENV{MOD_PERL} || $ENV{CATALYST_ENGINE};
+ return unless $ENV{PLACK_ENV};
return \%Cache;
}

0 comments on commit 2b90766

Please sign in to comment.