X-Git-Url: https://git.sesse.net/?p=pr0n;a=blobdiff_plain;f=perl%2FSesse%2Fpr0n%2FWebDAV.pm;h=9d23bb9668af0860e186f0a25ce3a2d1cb7dd559;hp=151370c99ad9f164b5d7c63df99f3a986a9d00af;hb=0da154f826ede0ad490099494c36472822a90260;hpb=d2389dffcfac50f01e2b59968f95779483500e5d diff --git a/perl/Sesse/pr0n/WebDAV.pm b/perl/Sesse/pr0n/WebDAV.pm index 151370c..9d23bb9 100644 --- a/perl/Sesse/pr0n/WebDAV.pm +++ b/perl/Sesse/pr0n/WebDAV.pm @@ -580,7 +580,7 @@ EOF $dbh->do('DELETE FROM images WHERE event=? AND filename=?;', undef, $event, $filename) or dberror($r, "Couldn't remove file"); - $dbh->do('UPDATE events SET last_update=CURRENT_TIMESTAMP WHERE event=?', + $dbh->do('UPDATE events SET last_update=CURRENT_TIMESTAMP WHERE id=?', undef, $event) or dberror($r, "Couldn't invalidate cache"); $r->status(200);