Reduce expiry time for reports
This commit is contained in:
parent
36f47b7067
commit
380139477c
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user