aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-08-11 14:40:51 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-08-11 14:40:51 +0100
commitb5ccc686b8f70a7c1bf2940c3354e732146e4bd3 (patch)
tree564f12d9c5820a40ce3998966170d80d85ec9ed1 /perllib/FixMyStreet/App
parent51b9420492bfc572710f833bc2a4242234caa7c8 (diff)
Compile templates and set a long stat TTL in production.
Diffstat (limited to 'perllib/FixMyStreet/App')
-rw-r--r--perllib/FixMyStreet/App/View/Web.pm2
1 files changed, 2 insertions, 0 deletions
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