Support toggling resolver caching.
Merged in @efurmantt's PR to support toggling resolver cache on and off