fixes #3417
Merge pull request #3451 from dotCMS/issue-3417-flush-environment-push-history

fixes #3417