Response cache getting refreshed on database refresh/changes.

Not applicable

Whenever a data in the database is changed/refreshed , response cache is also getting refreshed .

In this case actually cache expiry time is NOT yet completed,We may expect cache to retain the old data.

Instead Response cache is getting refreshed and is having the latest data from the database.

Kindly provide the reason and help us understand the behaviour .

Also please help us understand the behaviour of Response cache for the TimeOfDay setting.

We found there is some time delay in refreshing the cache

Please go through the below link.

https://community.apigee.com/questions/14589/responsecache-policy-not-working-as-expected.html

0 3 273
3 REPLIES 3

Not applicable

Edge cache is not aware of your database.

The cache is getting refreshed because:

A) You have missed cache hits that are triggering the load of new data into cache as per your API proxy implementation.

B) There is something wrong with your API logic and it is placing fresh data into the catch every time or invalidating the data set in cache.

@Shailesh Kumar Repalle, Looks like Response Cache policy is not configured properly in your proxy. Response Cache policy needs to be added in both pre & post flows so that it checks the "cachehit" flow variable before invoking backend service call. If the value is "true" then the backend call will be skipped and send the cached response to the consumer.

Not applicable

@Mohammad Feroz , This is the bug with APIGEE. This is specific for TimeOfDay setting.