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

Forums / General Discussions / blogs archive category loading

blogs archive category loading

6 posts, 0 answered
  1. siby
    siby avatar
    48 posts
    Registered:
    21 Feb 2009
    08 Sep 2010
    Link to this post
    Hi

    Using the sitefinity categorylist with providename="Blogs" (ie to list categories under blog), but it takes time to load categories, its not showing the category immediately.

    So is the case with BlogArchive, not showing up immediately..takes long time.

    Please reply ASAP

    Regards,
    Siby Chacko
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    09 Sep 2010
    Link to this post
    Hi siby,

    Use CategoriesTree instead of CategoriesList control. CategoriesTree and BlogArchive control uses caching. The control will not be updated until you remove it/add it again on a page, restart the application or Context.Cache is removed ( by default is 24 hours).

    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. siby
    siby avatar
    48 posts
    Registered:
    21 Feb 2009
    09 Sep 2010
    Link to this post
    Hi can you bit explain " Context.Cache is removed "

    Thanking You,
    Siby Chacko
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    09 Sep 2010
    Link to this post
    Hello siby,

    You can take a look at MSDN.

    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. siby
    siby avatar
    48 posts
    Registered:
    21 Feb 2009
    09 Sep 2010
    Link to this post
    Hi, but we need some key to identify the usercontrol from caching, right(if we go for a code like Context.Cache). Can I write a code at the blogs category tepmlate ascx file and prevent it from caching. can you suggest a way in this context.

    Thanking you,
    Siby Chacko
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    09 Sep 2010
    Link to this post
    Hello siby,

    If you remove the caching your will experience performance issues. Removing the caching could be done if you override BindArchive and/or BindHierarchicalArchive  method of ContentArchive class. You have to get Publication_Date and Expiration_Date of all posts and create the RadTreeNodes with the years. You can use Enumerable.Distinct<TSource> Method to get unique dates from a given list.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about 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
6 posts, 0 answered