Updated clear_cache to check for for version diff via version_compare()