Automated version based cache clearing