From 8daf39a1776563912de00a4a374a697ddcc6a316 Mon Sep 17 00:00:00 2001 From: anhefti Date: Wed, 19 May 2021 11:06:50 +0200 Subject: [PATCH] fixed cache issue do not evict the cache before get exams for institution otherwise connecting SEB clients will always reload all running exams form institution --- .../servicelayer/session/impl/ExamSessionServiceImpl.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/ExamSessionServiceImpl.java b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/ExamSessionServiceImpl.java index 67965c7b..abe8d6b1 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/ExamSessionServiceImpl.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/ExamSessionServiceImpl.java @@ -250,10 +250,8 @@ public class ExamSessionServiceImpl implements ExamSessionService { @Override public Result> getRunningExamsForInstitution(final Long institutionId) { - // NOTE: we evict the exam from the cache (if present) to ensure user is seeing always the current state of the Exam return this.examDAO.allIdsOfInstitution(institutionId) .map(col -> col.stream() - .map(this.examSessionCacheService::evict) .map(this::getRunningExam) .filter(Result::hasValue) .map(Result::get)