This is dangerous, I think, from a user perspective. "retries" suggests to me that you'll retry the operation - not that you'll clear local cache.

I'd prefer this to be a separate boolean parameter, "clearcache," which would clean local cache before run. Used in combination, this would clear cache between runs.