Set cache settings