Do cache gets cleared during API redeployment in EDGE

When there is a caching policy applied for an API, will this cache gets cleared when we redeploy the API

0 2 85
2 REPLIES 2

Hi @Karthick Vankayala,

Caching in apigee is provided by three main policies which are Populate Cache, Lookup Cache and Response Cache. If you check the documentation for scope element of these policies you'll find that caching can be done at different scopes like Global, Application, Target etc.

Each of these scope represent a default cache key value being created from different components of proxy, org, environment, revision numbers and target endpoints.

So, basically if you are using scopes such as Global or Application level then redeployment of should not clear the cache. But for all others your cache key will depend or what has been changed in your proxy. And if any of these things (proxy revision, target name, or proxy endpoint names) change then your cache key will be changed which will result in a new cache being created.

For further details on scopes please check caching documentation here.

Hope this helps!

@Mohammed Zuber Thanks mate