Expire application settings from cache at startup
If a DB migration occurs, there's a chance that the application settings are loaded from the cache and provide stale values, causing Error 500s. This ensures that at startup the settings are always refreshed.
Closes #3643 (closed)