Enable or disable cache