Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Unable to read LookUpCache cache-hit variable inside JavaScript.

When I am trying to read the cache-hit variable inside JavaScript policy. JS policy execution got failed and I see the following error on Message processor System.log.

RhinoExecutor$TopLevelScope.print() : ReferenceError: "lookupcache" is not defined.

JavaScript policy JS File code:

if(lookupcache.{policy-name}.cachehit !==true){    

 ///code

}

FYI information - LookUpCache policy is executing before JS policy.

0 2 214
2 REPLIES 2
Top Solution Authors