Hooking up code to run whenever Revise triggers?

I have a number of caches that store various things to make my code run faster.
However, when i am interactively developing and debugging my package I often want to clear those caches because they have cached a result computed with a method i have redefined.
I implemented a little package to make the clearing easier: GitHub - JuliaComputing/CentralizedCaches.jl: Making it possible to clear all your caches at once

I am now wondering if I can hook it up to Revise so that when any thing gets redefined by Revise i can clear out all my caches so that I don’t have any incorrect results stored.

1 Like

Maybe https://timholy.github.io/Revise.jl/stable/user_reference/#Revise.entr?

1 Like