@CACHE_REGION.cache_on_arguments()
def get_settings(self, cluster_name):
    try:
        connection = ConnectionService().get_connection(cluster_name)
        settings_doc = connection.get_source(index=current_app.config.get('HQ_CLUSTER_SETTINGS')['index_name'], id=current_app.config.get('HQ_CLUSTER_SETTINGS')['doc_id'], doc_type=current_app.config.get('HQ_CLUSTER_SETTINGS')['doc_type'])
        return settings_doc
    except NotFoundError as nfe:
        if current_app.config.get('HQ_CLUSTER_SETTINGS')['store_metrics']:
            self.save_settings(cluster_name)
    return current_app.config.get('HQ_CLUSTER_SETTINGS')
@CACHE_REGION.cache_on_arguments()
def get_settings(self, cluster_name):
    try:
        connection = ConnectionService().get_connection(cluster_name)
        settings_doc = connection.get_source(index=current_app.config.get('HQ_CLUSTER_SETTINGS')['index_name'], id=current_app.config.get('HQ_CLUSTER_SETTINGS')['doc_id'], doc_type=current_app.config.get('HQ_CLUSTER_SETTINGS')['doc_type'])
        return settings_doc
    except NotFoundError as nfe:
        if current_app.config.get('HQ_CLUSTER_SETTINGS')['store_metrics']:
            self.save_settings(cluster_name)
    return current_app.config.get('HQ_CLUSTER_SETTINGS')