enable and disable the cache (for debugging)