calculate default cacheid and let override it