Reduce expiry time for reports

This commit is contained in:
Keir Nellyer 2016-06-10 12:59:50 +01:00
parent 36f47b7067
commit 380139477c
2 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,7 @@ public class ReportManager
report.setHandlerId(closerId);
report.setReportResult(reportResult);
_reportRepository.updateReport(report).thenAccept(voiD -> _reportRepository.clearCache(reportId));
_reportRepository.updateReport(report).thenAccept(voidValue -> _reportRepository.clearCache(reportId));
if (reportCloser != null)
{

View File

@ -89,7 +89,7 @@ public class ReportRepository extends MinecraftRepository
private final Cache<Integer, Report> _cachedReports = CacheBuilder.newBuilder()
.maximumSize(1000)
.expireAfterAccess(15, TimeUnit.MINUTES)
.expireAfterAccess(5, TimeUnit.MINUTES)
.build();
public ReportRepository(JavaPlugin plugin)