private void AddDependecies(IRenderingContext context, IContentData contentData) { var routedContent = _contentRouteHelperAccessor().ContentLink; if (!ContentReference.IsNullOrEmpty(routedContent)) { context.AddDependency(routedContent); } var currentContent = contentData as IContent; if (currentContent != null && !currentContent.ContentLink.CompareToIgnoreWorkID(routedContent)) { context.AddDependency(currentContent.ContentLink); } }