check cache is enabled