async syncRoutesHash(getRoutesHash) {
        const currentRoutesHash = await getRoutesHash();

        if (SettingsCache.get('routes_hash') !== currentRoutesHash) {
            return await models.Settings.edit([{
                key: 'routes_hash',
                value: currentRoutesHash
            }], {context: {internal: true}});
        }
    }
Handles synchronization of routes.yaml hash loaded in the frontend with
the value stored in the settings table.
getRoutesHash is a function to allow keeping "frontend" decoupled from settings

@param {function} getRoutesHash function fetching currently loaded routes file hash