So basically I have two variables in the request and either of which can be the Cache Key in my Cache. I need to Invalidate Cache using either of two variables: request.queryparam.token or request.formparam.token.
Currently I have set Cache Key as below:
<CacheKey> <Prefix>apiToken</Prefix> <KeyFragment ref="request.queryparam.token"/> </CacheKey>
But Value of token can either be in queryparam or formparam. Can you please help, its urgent production issue
So basically I want to Invalidate Cache for particular Key. This key can be present in either of the two variables in request that is request.queryparam.token or request.formparam.token.
How can I take both the variables in consideration for removing cache key. Key value would be present in either of two variables.