How to invalidate entire ResponseCache

I have a read-only service that works off of data that is updated periodically through ETL automation. I am using the Response Cache to speed the service's response time, but need to invalidate the cache as part of the ETL sequence.

To do this, I am planning to issue a request to the service with a header that triggers the invalidation action, but I haven't been able to figure out how to get the InvalidateCache step to do this.

Any help would be appreciated.

0 1 190
1 REPLY 1

You can use that headers as a Condition to trigger InvalidateCache scope, but make sure that the <CacheKey> and <CacheContext> of the policy are identical to Response cache policy. Provide your policy configs for investigations.

or

Try using a Management API to clear the cache,

https://apidocs.apigee.com/api/caches