Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Amalie Wowern 145 posts 274 karma points MVP c-trib
    Dec 08, 2022 @ 09:56
    Amalie Wowern
    0

    Slow rendercontroller

    Hi

    When im using a rendercontroller in umbraco 10 the pageload is extremly slow

    I have tried to remove all logic to test if that was the reason, but that does not help

  • Søren Kottal 713 posts 4571 karma points MVP 6x c-trib
    Dec 08, 2022 @ 11:00
  • Paul Silver 3 posts 73 karma points
    Apr 12, 2024 @ 12:59
    Paul Silver
    0

    I know this is an older post but here is what I discovered through trial and error - not related to models but templates. If you try to use the "route by template" e.g. where you make a method in the controller to match the name of a template for your doc type, its insanely slow. Index method = about 200 to 400ms server render, a template routed conteroller action = about 2 to 7 SECONDS.

    This is in Umbraco 10 - I don't know if its still an issue in v13 yet as we haven't had a chance to update.

    Our workaround for it was to stop using route by template, only use Index and then if a special action in render controller is needed per template just look at the template in index and call a private method to handle it yourself.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

    Continue discussion

Please Sign in or register to post replies