Vulnerability in EPiServer.Forms
Hello, im having problems with the performance for a EventListner. I want to speed up the performance, currently it takes around 10 seconds to publish the PageType, in the eventListner I automatically create a map structure. At maximum it creates 3 containers/maps with a hierarchy order and moves the PageType in the bottom of the hierrarchy. After debugging I discover that the IContentRepository.Move slows the method down. Here is my code:
Let me know if you need more information
The most common way to move forward in this case is to use a profiler like dotTrace to see what is the bottleneck. if it's something we can improve from our side, we'd like to hear about it.
Don't you have an infinite loop here? Shouldn't path != eventPage.ContentLink be path != eventPage.ParentLink? Or even better path.Equals(eventPage.ParentLink, ignoreVersion: true).
path != eventPage.ContentLink
path != eventPage.ParentLink
path.Equals(eventPage.ParentLink, ignoreVersion: true)
Also, why are you casting SaveAction.Publish to the AccessLevel enum?