How long does MVC cache take to get cleared?
I created an MVC widget which pulls an instagram feed. I changed from my test account to the production account, so that I could start pulling from the production account, and I'm still getting my test account data. I assume there's some sort of caching going on? Question 1 -- how long does it take for that cache to get updated? And question 2 -- is there a way to clear it more quickly, maybe not on every load, but at least once so I can see the production account is going to get pull as I'd expect?
I should note that I turned off caching and restarted IIS. Still the old data. What gives?
Hi Ed,
With Sitefinity, you can configure the way your content and pages is cached. You can configure the following types of cache: Output cache (stored on the server) and Client cache (stored on the browser).
Also Sitefinity has the database caching (Open Access 2nd level cache) - is used to cache database query results for subsequent requests. To control the database caching, click Administration > Settings > Advances > Data. In single instance mode, database caching is turned on by default.
Using L2 cache can significantly increase the overall performance of your application.
MVC Widgets can't do cache substitution...so you can't have cache enabled and do something like @if(User.IsAuthenticated)
// do X
else
// do y
To be fixed no time soon...
Pavel is right though, should be updated by restarting IIS...you sure the new account has been set?