def METHOD_NAME(document_id, type):
    """ Update the cache version of the given document + associated documents.
    """
    DBSession.execute(
        text('SELECT guidebook.update_cache_version(:document_id, :type)'),
        {'document_id': document_id, 'type': type}
    )