API
Version 7.x > API > Dynamically change Cache for document View modes: 
User avatar
Member
Member
beau.cowan-rrpartners - 5/8/2013 5:43:17 PM
   
Dynamically change Cache for document
I have a pagetype that's pulling in an rss feed, breaking it down and spitting out the results.

At times, the rss might go down, I want to change the output cache for the page to just a few minutes when this happens, so that when the rss comes back up, the caching returns to normal.

how can I do this for when the node gets in a count of 0 for the rss feed? I'm not sure how to change the caching for the page through the API.

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 5/8/2013 11:17:15 PM
   
RE:Dynamically change Cache for document
If you have a webpart, you can simply set the weparts property for caching. If your not using a webpart and putting the data in a dataset, you could change this shortly after you get the data. Here is some info in the Dev Guide about caching that should get you going in the right direction.