moving cache config to settings module