London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
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 :)
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.
The following article explain how to cache object based upon EPiServer page version dependancies. https://tedgustaf.com/blog/2010/cache-objects-in-episerver-with-page-dependencies/
The code
var dependency = DataFactoryCache.CreateDependency(CurrentPage.PageLink); CacheManager.RuntimeCacheInsert("myCacheKey",objectToCache,dependency);
Has a lot of obsolete code and I tried the final post in http://world.episerver.com/Forum/Developer-forum/EPiServer-CMS-6-R2/Thread-Container/2011/9/Null-in-Cache-objects-in-EPiServer-with-page-dependencies/ 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?
Thanks,
Scott