Update the model and dependencies when migrations are run.
Cleanup caching.