Clearing/Invalidating Output Cache Programmatically

Posted by Community Admin on 04-Aug-2018 21:38

Clearing/Invalidating Output Cache Programmatically

All Replies

Posted by Community Admin on 30-Jan-2014 00:00

Is there a way to clear a page's output cache from an onclick event.

I have a page that has the caching turned on. I have a "refersh" button with an onclick event that needs it clear the page cache so that when the page finishes rendering it will render with the updated data and get added back into cache with the new data.

Posted by Community Admin on 30-Jan-2014 00:00

Hi Kris,

What you need is Cache Substitution: certain parts of the page/widget are dynamic while the rest is cached.

Posted by Community Admin on 30-Jan-2014 00:00

I've looked into the Cache Substitution. However it will not work in this case. Cache Substitution is wonderful and works really well if all you are changing are stings of data. In this case I'm hiding and showing complex data with fields that bind data and code behind click events.

I've tried using Cache Substitution and rending the entire control to a string(https://coderwall.com/p/4ajzqq), however, click events and posts back no longer work when I do that.

This thread is closed