fixed caching issues evict only in distributed env
This commit is contained in:
		
							parent
							
								
									8daf39a177
								
							
						
					
					
						commit
						2ac17108d6
					
				
					 2 changed files with 6 additions and 2 deletions
				
			
		|  | @ -321,7 +321,8 @@ public class ExamJITSIProctoringService implements ExamProctoringService { | ||||||
| 
 | 
 | ||||||
|         long expTime = System.currentTimeMillis() + Constants.DAY_IN_MILLIS; |         long expTime = System.currentTimeMillis() + Constants.DAY_IN_MILLIS; | ||||||
|         if (this.examSessionService.isExamRunning(examProctoring.examId)) { |         if (this.examSessionService.isExamRunning(examProctoring.examId)) { | ||||||
|             final Exam exam = this.examSessionService.getRunningExam(examProctoring.examId) |             final Exam exam = this.examSessionService | ||||||
|  |                     .getRunningExam(examProctoring.examId) | ||||||
|                     .getOrThrow(); |                     .getOrThrow(); | ||||||
|             if (exam.endTime != null) { |             if (exam.endTime != null) { | ||||||
|                 expTime = exam.endTime.getMillis(); |                 expTime = exam.endTime.getMillis(); | ||||||
|  |  | ||||||
|  | @ -227,7 +227,10 @@ public class ExamSessionServiceImpl implements ExamSessionService { | ||||||
|             log.trace("Running exam request for exam {}", examId); |             log.trace("Running exam request for exam {}", examId); | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|  |         if (this.distributedSetup) { | ||||||
|             updateExamCache(examId); |             updateExamCache(examId); | ||||||
|  |         } | ||||||
|  | 
 | ||||||
|         final Exam exam = this.examSessionCacheService.getRunningExam(examId); |         final Exam exam = this.examSessionCacheService.getRunningExam(examId); | ||||||
| 
 | 
 | ||||||
|         if (this.examSessionCacheService.isRunning(exam)) { |         if (this.examSessionCacheService.isRunning(exam)) { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 anhefti
						anhefti