X-Git-Url: https://git.sesse.net/?p=pr0n;a=blobdiff_plain;f=perl%2FSesse%2Fpr0n%2FRotate.pm;h=be023123373e40979cafe96bcca1bca8c01c1967;hp=59103e70241fdd373b6486909af96adb7887e17b;hb=56e33eea02b7f09d214b9a480d9c0533bdbd2cea;hpb=af53beceb86781f1caa593218e72a4cc0dcc2262 diff --git a/perl/Sesse/pr0n/Rotate.pm b/perl/Sesse/pr0n/Rotate.pm index 59103e7..be02312 100644 --- a/perl/Sesse/pr0n/Rotate.pm +++ b/perl/Sesse/pr0n/Rotate.pm @@ -50,6 +50,8 @@ sub handler { undef, $id); $dbh->do('INSERT INTO deleted_images SELECT * FROM images WHERE id=?', undef, $id); + $dbh->do('DELETE FROM exif_info WHERE image=?', + undef, $id); $dbh->do('DELETE FROM images WHERE id=?', undef, $id); }; @@ -63,6 +65,10 @@ sub handler { } } } + + my $event = $apr->param('event'); + $dbh->do('UPDATE events SET last_update=CURRENT_TIMESTAMP WHERE id=?', undef, $event) + or dberror($r, "Cache invalidation failed"); Sesse::pr0n::Common::footer($r);