Prevented replacing ID of doc from cache.