Skip to content

Commit

Permalink
style fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
ranguard committed Aug 28, 2016
1 parent dacf79d commit 720689c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
1 change: 0 additions & 1 deletion lib/MetaCPAN/Web/Controller/Pod.pm
Expand Up @@ -179,7 +179,6 @@ sub view : Private {
my $dist = $release->{distribution};

$c->purge_surrogate_key( $dist );


$c->stash( $c->model('API::Favorite')->find_plussers($dist) );

Expand Down
22 changes: 11 additions & 11 deletions lib/MetaCPAN/Web/Role/Fastly.pm
Expand Up @@ -3,7 +3,7 @@ package MetaCPAN::Web::Role::Fastly;
use Moose::Role;
use Net::Fastly;

use MetaCPAN::Web::Types qw( ArrayRef Str );
use MetaCPAN::Web::Types qw(:all);

=head1 NAME
Expand Down Expand Up @@ -41,7 +41,7 @@ and 'one_year' so we don't have numbers all over the place

## Stuff for working with Fastly CDN

has '_surrogate_keys' => (
has _surrogate_keys => (
traits => ['Array'],
is => 'ro',
isa => ArrayRef [Str],
Expand All @@ -54,7 +54,7 @@ has '_surrogate_keys' => (
},
);

has '_surrogate_keys_to_purge' => (
has _surrogate_keys_to_purge => (
traits => ['Array'],
is => 'ro',
isa => ArrayRef [Str],
Expand All @@ -69,26 +69,26 @@ has '_surrogate_keys_to_purge' => (

# How long should the CDN cache, irrespective of
# other cache headers
has 'cdn_cache_ttl' => (
has cdn_cache_ttl => (
is => 'rw',
isa => 'Int',
isa => Int,
default => sub {0},
);

# Make sure the CDN NEVER caches, ignore any other cdn_cache_ttl settings
has 'cdn_never_cache' => (
has cdn_never_cache => (
is => 'rw',
isa => 'Bool',
default => sub {0},
isa => Bool,
default => 0,
);

has 'browser_max_age' => (
has browser_max_age => (
is => 'rw',
isa => 'Int',
isa => Int,
default => sub {undef},
);

has 'cdn_times' => (
has cdn_times => (
is => 'ro',
isa => 'HashRef',
lazy_build => 1,
Expand Down

0 comments on commit 720689c

Please sign in to comment.