Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

LookupCache is working weirdly, i.e it's retrieving cache sometimes and other times it's empty

Not applicable

LookupCache policy configuration:

<LookupCache async="false" continueOnError="false" enabled="true" name="Lookup-Cache-2">
    <DisplayName>Lookup Cache-1</DisplayName>
    <Properties/>
    <CacheKey>
        <Prefix>pupulate</Prefix>
        <KeyFragment>cache</KeyFragment>
    </CacheKey>
    <Scope>Global</Scope>
    <AssignTo>myvariable1</AssignTo>
</LookupCache>

PopulateCache configuration:

<PopulateCache async="false" continueOnError="false" enabled="true" name="Populate-Cache-1">
    <DisplayName>Populate Cache-1</DisplayName>
    <Properties/>
    <CacheKey>
        <Prefix>pupulate</Prefix>
        <KeyFragment>cache</KeyFragment>
    </CacheKey>
    <Scope>Global</Scope>
    <ExpirySettings>
        <TimeoutInSec>3600</TimeoutInSec>
    </ExpirySettings>
    <Source>response.content</Source>
</PopulateCache>

What happens is: with LookupCache, the result is there for every 4th request, but for other it's not even present.
I am not getting what exactly I am missing. Please help.

0 4 480
4 REPLIES 4