+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Page Caching Issue w/ MVC Widgets

Page Caching Issue w/ MVC Widgets

2 posts, 0 answered
  1. James
    James avatar
    19 posts
    Registered:
    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:
    --SNIP--
    <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?

    Thanks!

    james
  2. Elan
    Elan avatar
    5 posts
    Registered:
    16 Oct 2014
    15 Aug 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