Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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 :(
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...
Write your reply to:
Image will be uploaded when post is submitted