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:
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.
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:
But on "InitializeApplication" i only can only replace events :(
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.
is working on a reply...