X-Git-Url: https://git.donarmstrong.com/?p=debbugs.git;a=blobdiff_plain;f=cgi%2Flibravatar.cgi;h=219d65ee0c268c69bca1f5d63b8467422072fa90;hp=3b8420d76508181215405395aba013bea5126571;hb=1795f7f2a672ee6482240c4037b0bccd53117a2c;hpb=2da5c58430ad99f69d913865850c002af6882181 diff --git a/cgi/libravatar.cgi b/cgi/libravatar.cgi index 3b8420d..219d65e 100755 --- a/cgi/libravatar.cgi +++ b/cgi/libravatar.cgi @@ -32,9 +32,9 @@ if ($param{avatar} ne 'yes' or not defined $param{email} or not length $param{em # figure out what the md5sum of the e-mail is. my $email_md5sum = md5_hex(lc($param{email})); -my $cache_location = cache_location(email => lc($param{email})); +my ($cache_location, $is_valid) = cache_location(email => lc($param{email})); # if we've got it, and it's less than one hour old, return it. -if (cache_valid($cache_location)) { +if ($is_valid) { serve_cache($cache_location,$q); exit 0; }