aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-01-10 16:07:08 +0000
committerMatthew Somerville <matthew@mysociety.org>2012-01-10 16:07:08 +0000
commit01b42cba179828a188d4d7d4abdb449c066b7be3 (patch)
tree292f7ebc5880dd4d533bd218a250d9a249cea04b
parent62f0d7ea89e8eda7c74d1467187a2ceddf8dd7d5 (diff)
If on staging site, look up last mod time of file each time, if cached somewhere.
-rw-r--r--perllib/FixMyStreet/App/View/Web.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/View/Web.pm b/perllib/FixMyStreet/App/View/Web.pm
index 43d46ae25..755f1e405 100644
--- a/perllib/FixMyStreet/App/View/Web.pm
+++ b/perllib/FixMyStreet/App/View/Web.pm
@@ -168,7 +168,7 @@ sub html_filter {
my %version_hash;
sub version {
my ( $self, $c, $file ) = @_;
- unless ($version_hash{$file}) {
+ unless ($version_hash{$file} && !FixMyStreet->config('STAGING_SITE')) {
my $path = FixMyStreet->path_to('web', $file);
$version_hash{$file} = ( stat( $path ) )[9];
}