Do not attempt to clear cache if cache is not set.