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

Forums / Bugs & Issues / Page cahcing and news

Page cahcing and news

4 posts, 0 answered
  1. UI Crew
    UI Crew avatar
    151 posts
    Registered:
    27 Sep 2012
    18 Mar 2008
    Link to this post
    Hi,

    As advised previously we have a home page with paging caching turned on. The home page has both a news list and a blog list on it. Pages, news and blogs all have worflow activated.

    We are finding that once a new news item or blog is published it takes up to 30 mins before it will appear on the home page... turn page caching off and it  appears straight away. Making changes to the home page directly with page caching turned on works fine it is just news and blogs that take a while.

    Is there a way around this? We turn page caching on because we were advised to do this for performance reasons.

    Thanks

    Seth
  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    19 Mar 2008
    Link to this post
    Hi Seth Cleaver,

    Thank you for getting in touch with us. As you suspected, it is a caching issue that doesn't have a solution, as the cache is refreshed when a new page is published, when a navigation control is changed and on time interval.

    You could try using the standard ASP.NET caching. To do so, open the web.config file and add :
    <telerik>   
    .   
    .   
    <cms defaultProvider="Sitefinity"    
         pageExtension=".aspx"    
         projectName="modules"   
         disabled="false"    
         pageEditorUIMode="Overlay"    
         caching="AspNet">   
    .   
    .   
    </telerik>   

    We plan to improve the caching so it is more flexible, but cannot commit for any time frame.
    Let us know if your problems persist after setting the above.

    All the best,
    Georgi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Gabe Sumner
    Gabe Sumner avatar
    440 posts
    Registered:
    09 Sep 2007
    18 Aug 2008
    Link to this post
    I was running into the "stale cache" issue described in this thread relating to blog comments.  Each time a new comment was posted to my blog, the old-version of the web page continued to be displayed.

    As a work-around, I created a small UserControl that I placed on the Blog ControlTemplate.  This UserControl checks for a PostBack.  If "IsPostBack" is "true" then we assume a new comment has been posted and expire the current cache.

    I admit it isn't ideal, but it does work.  I wrote a bit more about this at the following URL:

    http://www.goondocks.com/blog/08-08-18/Sitefinity_Refreshing_the_Cache.aspx

    The upcoming caching features sound great!

    Gabe Sumner
    http://www.goondocks.com/
  4. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    18 Aug 2008
    Link to this post
    Hello Gabe Sumner,

    This user control will indeed do the trick. Let me just remind that whenever you need the cache to be invalidated, you should execute the code:
    Telerik.DataAccess.CacheDependencyHandler.Current.Notify(typeof(Telerik.Cms.ICmsPage)); 

    Gabe, we will reference your post for future inquires similar to this one. Thank you once again for this article :)

    Greetings,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Register for webinar
4 posts, 0 answered