Rename this to something like clearCaches to make clearer what it does in the code above