Is it possible to listen to cache clear events?


#1

From either Workers or Apps is it possible to register to listen for when a cache is cleared in CF?


#2

If you mean to find out when a file rolls out of the cache, no. But you can use the API to go through Audit Logs to look for a Purge command.

https://api.cloudflare.com/#audit-logs-list-user-audit-logs


#3

That’s handy, thanks