check if cache is enabled