deason 1 жил өмнө
parent
commit
77f1a088c3

+ 1 - 0
examcloud-core-questions-service/src/main/java/cn/com/qmth/examcloud/core/questions/service/PaperStructService.java

@@ -519,6 +519,7 @@ public class PaperStructService {
 
         log.warn("从【数据库】中获取抽卷模板! key:{}", key);
         redisClient.set(key, ps, cacheTimeOut);
+        localPaperStructCache.put(key, ps);
         return ps;
     }
 

+ 1 - 0
examcloud-core-questions-service/src/main/java/cn/com/qmth/examcloud/core/questions/service/impl/RandomPaperServiceImpl.java

@@ -1174,6 +1174,7 @@ public class RandomPaperServiceImpl implements RandomPaperService {
         rp.setQuestionMap(map);
 
         redisClient.set(key, rp, cacheTimeOut);
+        localRandomPaperCache.put(key, rp);
         return rp;
     }