More in this section
Forums / General Discussions / Page Caching Issue w/ MVC Widgets

Page Caching Issue w/ MVC Widgets

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. James
    James avatar
    19 posts
    21 Jan 2011
    09 Oct 2012
    Link to this post
    Hi Everyone,

    I've setup a new 5.1 SP2 project for a marketing site and am having some pain.  I have added a new MVC widget to a page whose template is based on a from scratch template in pure MVC mode -- and no matter what I try the page contents are getting cached.

    I placed a breakpoint in the Index Action Method on the return view line as shown below :
    public ActionResult Index()
                return View("Default"); // break point here

    My breakpoint is only hit in the following scenarios:
    I am editing the page via /Action/Edit
    I just edited the page and therefore invalidated the cache for that page.

    I have completely disabled page caching in the system config file as shown below:
    <outputCacheSettings enableOutputCache="False" enableClientCache="False" defaultProfile="No Caching" defaultClientProfile="No Caching" />
    --END SNIP--

    My usage scenario is I want to be able to edit the cshtml files, save the changes, hit shift-refresh in my web browser, and see the changes reflected immediately. I CANNOT wait for the site to re-cycle, that takes far too long.

    Is this a known bug, or did I just miss some setting somewhere?


  2. Elan
    Elan avatar
    5 posts
    16 Oct 2014
    15 Aug 2016 in reply to James
    Link to this post

    Hi James,


    I am looking to do the same thing.


    Did you ever find a resolution to this?

2 posts, 0 answered