You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the partially support of Segments feature in Umbraco. As such I wish to vary some of my cached Razor by the segment. I've achieved this by implementing UmbracoCacheHelper with my own class. The class looks like this:
I did try to look at how this might be done without using VaryBy, with the view to submitting a PR. Unfortunately I couldn't get my head around the cache keys. However I wondered cleverer then me might be able to achieve this.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm using the partially support of Segments feature in Umbraco. As such I wish to vary some of my cached Razor by the segment. I've achieved this by implementing UmbracoCacheHelper with my own class. The class looks like this:
I did try to look at how this might be done without using
VaryBy
, with the view to submitting a PR. Unfortunately I couldn't get my head around the cache keys. However I wondered cleverer then me might be able to achieve this.Beta Was this translation helpful? Give feedback.
All reactions