Copied to clipboard

Flag this post as spam?

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


  • Tito 314 posts 623 karma points
    Apr 08, 2021 @ 09:57
    Tito
    0

    Umbraco 8 configure custom Output Cache with GetVaryByCustomString

    I am trying to configure output cache on Umbraco 8, but i dont know how to override GetVaryByCustomString.

    The umbraco 7 approach does not work anymore on v8. On v7 you could create a class that extends UmbracoApplication and override GetVaryByCustomString. If you try the same on v8 it never gets executed.

    I have tried writing a component and on "Initialize" i have set:

    UmbracoApplicationBase.ApplicationInit += InitializeApplication;
    

    But on "InitializeApplication" i only can only replace events :(

  • Tito 314 posts 623 karma points
    Apr 14, 2021 @ 17:51
    Tito
    0

    Finally i have configured like in v7 and works. I though i had to use composing but i can inherit the umbraco base application and edit global.asax to set the new class.

Please Sign in or register to post replies

Write your reply to:

Draft