X-Git-Url: https://git.sesse.net/?p=pr0n;a=blobdiff_plain;f=perl%2FSesse%2Fpr0n%2FListing.pm;h=2cb1125277e3be0e92d8df47b29792902b7d2a6c;hp=03285a142f969265cf2ae340ed8b7fe68fc1b536;hb=97d5bb1e417a37cf3e0cec8bf75bed3a971f913b;hpb=9e74ede2b7ddaf65620930b048e0dba636f631a9 diff --git a/perl/Sesse/pr0n/Listing.pm b/perl/Sesse/pr0n/Listing.pm index 03285a1..2cb1125 100644 --- a/perl/Sesse/pr0n/Listing.pm +++ b/perl/Sesse/pr0n/Listing.pm @@ -24,9 +24,9 @@ sub handler { } # find the last modification - my $ref = $dbh->selectrow_hashref('SELECT EXTRACT(EPOCH FROM last_update) AS last_update FROM events WHERE vhost=? ORDER BY last_update DESC LIMIT 1', + my $ref = $dbh->selectrow_hashref('SELECT EXTRACT(EPOCH FROM last_update) AS last_update FROM last_picture_cache WHERE vhost=? ORDER BY last_update DESC LIMIT 1', undef, $r->get_server_name) - or error($r, "Could not any events", 404, "File not found"); + or error($r, "Could not find any events", 404, "File not found"); $r->set_last_modified($ref->{'last_update'}); $r->content_type('text/html; charset=utf-8');