faster cleanup query

This commit is contained in:
Athou
2013-06-18 10:34:11 +02:00
parent 9b53e2b0fb
commit c4bb8da746
4 changed files with 12 additions and 25 deletions

View File

@@ -194,8 +194,8 @@ public class AdminREST extends AbstractResourceREST {
@Path("/cleanup")
@GET
public Response cleanup() {
cleaner.cleanOlderThan(30, TimeUnit.DAYS);
return Response.ok("ok").build();
int deleted = cleaner.cleanOlderThan(30, TimeUnit.DAYS);
return Response.ok("ok: " + deleted).build();
}
}