Allow cache to be enabled/disabled