Make the cron job use an environment variable nbr_days_remove_expired_invitations from the config to determine which invitations to remove. Also don't remove API created invitations, but mark them expired. In the same Cron job remove those after nbr_days_remove_api_expired_invitations variable.
Make the cron job use an environment variable
nbr_days_remove_expired_invitations
from the config to determine which invitations to remove. Also don't remove API created invitations, but mark them expired. In the same Cron job remove those afternbr_days_remove_api_expired_invitations
variable.