Hi,
I’ve been working on a simple caching example where I am using LookupCache in the request
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<LookupCache async="false" continueOnError="false" enabled="true" name="Lookup-Cache">
<DisplayName>Lookup Cache</DisplayName>
<CacheKey>
<KeyFragment ref="request.queryparam.page"/>
</CacheKey>
<Scope>Exclusive</Scope>
<AssignTo>cached.response</AssignTo>
</LookupCache>
and PopulateCache in the response
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<PopulateCache async="false" continueOnError="false" enabled="true" name="Populate-Cache">
<DisplayName>Populate Cache</DisplayName>
<CacheKey>
<KeyFragment ref="request.queryparam.page"/>
</CacheKey>
<Scope>Exclusive</Scope>
<ExpirySettings>
<TimeoutInSec>3600</TimeoutInSec>
</ExpirySettings>
<Source>response.content</Source>
</PopulateCache>
This works fine if I use Scope as Global or Proxy. But if I change the scope to Application or Exclusive then it fails. That is the LookupCache always ends up with a miss.
Any pointers?