Add autoflush() call to the cronjob