How to clear specific cache entires using Managment Call

Not applicable

With the apigee cloud version that we use in our project, one of the proxy flow has Lookup-cache policy and Populate cache policy where we use key fragments to create entries to the cache

As given below:

We have a requirement to delete specific cache entries say organizationName__environment____brand__market__language__ and for doing this we are using the Management API call, but instead it clears the entire cache.

Also, we simulated this on our private account hosted on the public cloud and we could successfully clear the specific entries form the cache. Below are the two entries where if we clear “

organizationName__environment____brand__market__language__live__” entry all the entries having

organizationName__environment____brand__market__language__dark__still remains in the cache.

We need your help to understand this behavior and resolve this issue

0 1 241
1 REPLY 1

You cannot clear specific cache entries via an Administrative API call.

You can clear entries with a specific prefix. I think you know about that Management API call.

If you want to clear a specific entry, you need to use the PopulateCache or InvalidateCache policies in an API Proxy. Create a flow that uses the appropriate policy and invoke it.