Pleas see below
<Step>
<Name>Cache.lookupCoreServiceCalloutGET</Name>
</Step>
<Step>
<Condition>lookupcache.Cache.lookupCoreServiceCalloutGET.cachehit != "true"</Condition>
<Name>Assign.setCalloutVerbGET</Name>
</Step>
<Step>
<Condition>lookupcache.Cache.lookupCoreServiceCalloutGET.cachehit != "true"</Condition>
<Name>Callout.genericServiceCallout</Name>
</Step>
<Step>
<Condition>lookupcache.Cache.lookupCoreServiceCalloutGET.cachehit != "true" and serviceCallout.Response.status.code=200</Condition>
<Name>Cache.populateCoreServiceCalloutGET</Name>
</Step>
This time cacheKey will be different but policy name is same. key is changed prior tothat.
<Step>
<Name>Cache.lookupCoreServiceCalloutGET</Name>
</Step>
<Step>
<Condition>lookupcache.Cache.lookupCoreServiceCalloutGET.cachehit != "true"</Condition>
<Name>Assign.setCalloutVerbGET</Name>
</Step>
<Step>
<Condition>lookupcache.Cache.lookupCoreServiceCalloutGET.cachehit != "true"</Condition>
<Name>Callout.genericServiceCallout</Name>
</Step>
<Step>
<Condition>lookupcache.Cache.lookupCoreServiceCalloutGET.cachehit != "true" and serviceCallout.Response.status.code=200</Condition>
<Name>Cache.populateCoreServiceCalloutGET</Name>
</Step>
Now the question is there any way in which we can check lookupcache.Cache.lookupCoreServiceCalloutGET.cacheKey.cachehit which allows us to use same lookup cachepolicy and cacheHit is identified from key also instead of policyName.