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

Forums / Developing with Sitefinity / Caching with session

Caching with session

4 posts, 0 answered
  1. Siddesh Kapadi
    Siddesh Kapadi avatar
    239 posts
    Registered:
    09 Oct 2009
    15 Sep 2011
    Link to this post
    Hi,

    I have created a sitefinity site with around 300 pages.

    The site works fine on development environment. But as soon as there are around 10 users accessing it, there is abnormal amount of time taken by page to load.

    But there are few areas in my page that needs to be dynamic and should change for each user.

    So for that, we decided to use session to persist the state of the user and show him the same content through out the page till the session is active for the user.

    But since the site cannot take the load of as many users we decided to cache the site. Now the problem is, we have the dynamic content shown as same for all the users coz the site is cached. How can we resolve this.


    Regards,
    Siddesh Kapadi
  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    19 Sep 2011
    Link to this post
    Hi Siddesh Kapadi,

    Please check the following blog post - http://www.sitefinity.com/blogs/teamblog/posts/09-03-16/performance_optimizations_part_2_%E2%80%93_cache_substitution_controls.aspx - it will show you how to have dynamic content on cached pages.

    Regards,
    Georgi
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Siddesh Kapadi
    Siddesh Kapadi avatar
    239 posts
    Registered:
    09 Oct 2009
    23 Sep 2011
    Link to this post
    Hi Team Telerik,

    If I understand correctly, you cannot use session in substitution controls. As session start is never invoked. Hence, the session is always found to be null.

    So, using substitution we cannot use session. here is the link to it:
    http://weblogs.asp.net/scottgu/archive/2006/11/28/tip-trick-implement-donut-caching-with-the-asp-net-2-0-output-cache-substitution-feature.aspx

    Also, does sitefinity have such a bad performance, that when we do a stress testing with 10 Users, the IIS literally crashes and we need to restart the server. Please hep in this.

    Is caching required to get the Sitefinity site running?

    Regards,
    Siddesh Kapadi
  4. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    29 Sep 2011
    Link to this post
    Hello Siddesh,

    But this is how the caching works. When you have a cached page, Asp.Net serves the cached html, which was previously rendered. This means that the entire lifecycle of the page is skippen - you already have the cached html that you want to serve to the browser. Using cache substitution controls can make certain parts of the page dynamic, meaning that you can invoke the session there.

    The performance really depends on the things you have on the page. For example, if the controls do too many operations and retrieve too many data, then yes, 10 requests can block the server. In my opinion 10 requests are too little to crash the entire IIS though. 

    Can you provide some additional information on the issue?

    Kind regards,
    Georgi
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
4 posts, 0 answered