diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-02-21 13:23:35 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-02-28 12:06:31 +0000 |
commit | bb0473577998ff275a3f28b279a74948dc2ef044 (patch) | |
tree | 1ecb038d013b69ac2a336915a796f694abfcd99f /perllib/FixMyStreet | |
parent | 36838708a432de937828f6a8ef4aff608654f900 (diff) |
Do not re-stat non-existent files.
The versioning code wasn't remembering when it had found that a file did
not exist, so was checking for them each time.
Diffstat (limited to 'perllib/FixMyStreet')
-rw-r--r-- | perllib/FixMyStreet/App/View/Web.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/View/Web.pm b/perllib/FixMyStreet/App/View/Web.pm index b73fa82ef..496463700 100644 --- a/perllib/FixMyStreet/App/View/Web.pm +++ b/perllib/FixMyStreet/App/View/Web.pm @@ -155,7 +155,7 @@ sub version { sub _version_get_mtime { my $file = shift; - unless ($version_hash{$file} && !FixMyStreet->config('STAGING_SITE')) { + unless (defined $version_hash{$file} && !FixMyStreet->config('STAGING_SITE')) { my $path = FixMyStreet->path_to('web', $file); $version_hash{$file} = ( stat( $path ) )[9] || 0; } |