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?
DortL7L7L7
12/20/2024, 2:58 PM
I found my answer:
Use IDocumentUrlService.GetDocumentKeyByRoute and then IPublishedContentCache.GetById to get the IPublishedContent item.