tag:blogger.com,1999:blog-5655180.post2929086170321349452..comments2024-03-16T18:06:30.621+00:00Comments on <a href="http://www.daddycode.com">DaddyCode</a> Team Blog: Using OutputCache with PartialView in MVC 3, with programmatic invalidation usingVaryByCustom too!James McCormackhttp://www.blogger.com/profile/02802202320696705884noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-5655180.post-57947559375680616152014-04-18T12:33:05.066+01:002014-04-18T12:33:05.066+01:00It does not invalidate the cache, It only makes ne...It does not invalidate the cache, It only makes new one. So the resources it costs would be bigger and bigger every time you "clear the cache". And dependency on session? Huh, what a crazy technic.<br /><br />I would strongly not recommend this solution at all.Pavel Slavětínskýhttps://www.blogger.com/profile/00456187873228205043noreply@blogger.comtag:blogger.com,1999:blog-5655180.post-34688090553279987792013-12-17T13:03:35.041+00:002013-12-17T13:03:35.041+00:00Thnz for sharing. Its very usefulThnz for sharing. Its very usefulEsat ARSLANhttps://www.blogger.com/profile/14265031495509506502noreply@blogger.comtag:blogger.com,1999:blog-5655180.post-86213837306508655432013-09-09T07:45:14.305+01:002013-09-09T07:45:14.305+01:00I am using similar approach for partial views. How...I am using similar approach for partial views. However, instead of using OutPutCache attribute with controller action, i wanted to use cache profile, that i can define in configuration file. But, while doing that, i face problem,<br /><br />"utputCacheAttribute for child actions only supports Duration, VaryByCustom, and VaryByParam values. Please do not set CacheProfile, Location, NoStore, Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5655180.post-33647885562433079802012-03-02T22:46:43.689+00:002012-03-02T22:46:43.689+00:00“OutputCache(Location:=OutputCacheLocation.Client,...“OutputCache(Location:=OutputCacheLocation.Client, Duration:=600, VaryByParam:="id", VaryByCustom:="OutputCacheKey")”Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5655180.post-31868317188650668852012-03-02T22:45:38.432+00:002012-03-02T22:45:38.432+00:00Here's the correct Index controller action:
&...Here's the correct Index controller action:<br /><br />'<br /> ' GET: /Home<br /> <br /> Function Index(searchModel As SearchModel) As ActionResult<br /> <br /> End FunctionAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5655180.post-90967012382986236112012-03-02T22:43:03.198+00:002012-03-02T22:43:03.198+00:00After searching on the internet for a simple way t...After searching on the internet for a simple way to cache my MVC 3 Razor application, I came across your blog and thought it would finally put an end to my coding frustrations. Unfortunately, I could not get your code to function properly within my application. Basically, I have an Index controller action that grabs data from a database but it’s very expensive at this time. So, I thought I Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5655180.post-32080166497720098112012-01-05T16:58:17.070+00:002012-01-05T16:58:17.070+00:00Excellent!!!
you are the man.
I tried almost ever...Excellent!!!<br /><br />you are the man.<br />I tried almost everything, and your solution is the only one that works and is simple.<br /><br />Power to the people!Anonymousnoreply@blogger.com