Timeline for Custom Vary By option on Rendering instance
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 17, 2021 at 11:49 | history | edited | Mark Cassidy♦ | CC BY-SA 4.0 |
edited title
|
May 17, 2021 at 10:42 | answer | added | Ed T. | timeline score: 1 | |
Feb 8, 2021 at 11:09 | comment | added | Kamil C | Why not simply extend Sitecore.Mvc.Pipelines.Response.RenderRendering.GenerateCacheKey pipeline and override protected override string GenerateKey(Rendering rendering, RenderRenderingArgs args). Then in this method you could get your custom 'varyby' field and generate 'cachekey'. Example can be seen here leonardocunha.net/2019/10/15/… | |
Feb 8, 2021 at 2:05 | comment | added | jammykam | Do you really care about the custom Cache Options showing up in the Rendering Parameters/Control Properties? Is this something that your users are actually using to set cache options? It is much better, centralised and will mean your components being cached as defined by setting this on the Rendering item definition itself. | |
Feb 8, 2021 at 1:45 | history | asked | Bic | CC BY-SA 4.0 |