Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

Caching an object indefinitely against a page version


The following article explain how to cache object based upon EPiServer page version dependancies. 

The code 

var dependency = DataFactoryCache.CreateDependency(CurrentPage.PageLink);


Has a lot of obsolete code and I tried the final post in which also now has obsolete code. 

Does anyone have a working example using the latest version 9 of how to cache items agaist a page until that page changes?



Edited, Jul 18, 2016 13:55

Check out this blog post to see if that gives you an idea how to solve it.

Otherwise let me know and I'll help you. I like caching :)

Edited, Jul 19, 2016 9:23

Thanks for the feedback Daniel, I'll have a read over it but it all looks pretty self explanitory on a quick glance, there just didn't seem to be any solid information when looking and the old way was so easy to implement.

Edited, Jul 19, 2016 9:45
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.