Skip to content

Commit

Permalink
Merge pull request #2 from KB-iGOT/4.8.14-RedisSystemUpdate
Browse files Browse the repository at this point in the history
4.8.14 redis system update
  • Loading branch information
karthik-tarento authored Jul 11, 2024
2 parents a44fd90 + 08ab7bb commit a841e38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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](){{
Expand Down

0 comments on commit a841e38

Please sign in to comment.