changing the cache settings in local and live env