diff --git a/assessment-api/assessment-actors/src/main/scala/org/sunbird/actors/QuestionSetActor.scala b/assessment-api/assessment-actors/src/main/scala/org/sunbird/actors/QuestionSetActor.scala index 7ce683869..fd77db8ab 100644 --- a/assessment-api/assessment-actors/src/main/scala/org/sunbird/actors/QuestionSetActor.scala +++ b/assessment-api/assessment-actors/src/main/scala/org/sunbird/actors/QuestionSetActor.scala @@ -142,9 +142,11 @@ class QuestionSetActor @Inject()(implicit oec: OntologyEngineContext) extends Ba def systemUpdate(request: Request): Future[Response] = { val identifier = request.getContext.get("identifier").asInstanceOf[String] RequestUtil.validateRequest(request) - if(Platform.getBoolean("questionset.cache.enable", false)) + if(Platform.getBoolean("questionset.cache.enable", false)) { RedisCache.delete(hierarchyPrefix + identifier) + } + RedisCache.delete(identifier) val readReq = new Request(request) val identifiers = new util.ArrayList[String](){{ add(identifier) diff --git a/content-api/content-actors/src/main/scala/org/sunbird/content/actors/ContentActor.scala b/content-api/content-actors/src/main/scala/org/sunbird/content/actors/ContentActor.scala index 2f41ca5f0..b2cc6b70a 100644 --- a/content-api/content-actors/src/main/scala/org/sunbird/content/actors/ContentActor.scala +++ b/content-api/content-actors/src/main/scala/org/sunbird/content/actors/ContentActor.scala @@ -279,6 +279,7 @@ class ContentActor @Inject() (implicit oec: OntologyEngineContext, ss: StorageSe val identifier = request.getContext.get("identifier").asInstanceOf[String] RequestUtil.validateRequest(request) RedisCache.delete(hierarchyPrefix + request.get("rootId")) + RedisCache.delete(identifier) val readReq = new Request(request) val identifiers = new util.ArrayList[String](){{