[SOLVED] GetByRoute
# help-with-umbraco
d
Umbraco v15.1.1 The IPublishedContentCache.GetByRoute method has been deprecated, but no alternative is suggested in the code, nor in the docs. Searching the source, this method is still being used in a few places, but the unit tests have all been commented out with a "FIXME" tag. Is there an alternative method we should be using?
I found my answer: Use IDocumentUrlService.GetDocumentKeyByRoute and then IPublishedContentCache.GetById to get the IPublishedContent item.
29 Views