mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 19:56:59 +00:00
bugfix/fixed the cacheKey for getResourceDocs-tweaked value
This commit is contained in:
parent
2d26c80ec3
commit
2f7e1c6aa7
@ -4882,8 +4882,8 @@ object APIUtil extends MdcLoggable with CustomJsonFormats{
|
||||
apiCollectionIdParam: Option[String],
|
||||
isVersion4OrHigher: Option[Boolean],
|
||||
isStaticResource: Option[Boolean],
|
||||
) = s"$requestedApiVersionString-$bankId-$tags-$partialFunctions-${locale.toString}" +
|
||||
s"-$contentParam-$apiCollectionIdParam-$isVersion4OrHigher-$isStaticResource".intern()
|
||||
) = s"requestedApiVersionString:$requestedApiVersionString-bankId:$bankId-tags:$tags-partialFunctions:$partialFunctions-locale:${locale.toString}" +
|
||||
s"-contentParam:$contentParam-apiCollectionIdParam:$apiCollectionIdParam-isVersion4OrHigher:$isVersion4OrHigher-isStaticResource:$isStaticResource".intern()
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -597,7 +597,7 @@ object JSONFactory1_4_0 extends MdcLoggable{
|
||||
val userDefinedEndpointTags = getAllEndpointTagsBox(rd.operationId).map(endpointTag =>ResourceDocTag(endpointTag.tagName))
|
||||
val resourceDocWithUserDefinedEndpointTags: ResourceDoc = rd.copy(tags = userDefinedEndpointTags++ rd.tags)
|
||||
|
||||
val cacheKey = (resourceDocWithUserDefinedEndpointTags.operationId + locale + isVersion4OrHigher).intern()
|
||||
val cacheKey = s"operationId:${resourceDocWithUserDefinedEndpointTags.operationId}-locale:$locale- isVersion4OrHigher:$isVersion4OrHigher".intern()
|
||||
val cacheValueFromRedis = Caching.getLocalisedResourceDocCache(cacheKey)
|
||||
|
||||
if(cacheValueFromRedis.isDefined){
|
||||
|
||||
Loading…
Reference in New Issue
Block a user