aboutsummaryrefslogtreecommitdiffstats
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
parent51b9420492bfc572710f833bc2a4242234caa7c8 (diff)
Compile templates and set a long stat TTL in production.
-rw-r--r--.gitignore1
-rw-r--r--perllib/FixMyStreet/App/View/Web.pm2
2 files changed, 3 insertions, 0 deletions
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