From b5ccc686b8f70a7c1bf2940c3354e732146e4bd3 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Thu, 11 Aug 2011 14:40:51 +0100 Subject: Compile templates and set a long stat TTL in production. --- .gitignore | 1 + perllib/FixMyStreet/App/View/Web.pm | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 073bd7ab7..ea28bc4b2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +*.ttc /cities_bin /private_locale ._* diff --git a/perllib/FixMyStreet/App/View/Web.pm b/perllib/FixMyStreet/App/View/Web.pm index df2d0ac20..44f80e375 100644 --- a/perllib/FixMyStreet/App/View/Web.pm +++ b/perllib/FixMyStreet/App/View/Web.pm @@ -24,6 +24,8 @@ __PACKAGE__->config( FILTERS => { escape_js => \&escape_js, }, + COMPILE_EXT => '.ttc', + STAT_TTL => FixMyStreet->config('STAGING_SITE') ? 1 : 86400, ); =head1 NAME -- cgit v1.2.3