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

Forums / General Discussions / Database cache

Database cache

4 posts, 0 answered
  1. vinamra
    vinamra avatar
    45 posts
    Registered:
    23 Oct 2012
    25 Mar 2010
    Link to this post
    Hi
    I want to do database caching as i am hosting my website on shared hosting and my app pool recycles every 20 mins so i thing inmemory cache is effect less.
    i know these tages are to be changed but with what values




    <caching defaultProvider="memoryCache">
            <providers>
              <add name="memoryCache" type="Telerik.Caching.MemoryCachingProvider, Telerik.Framework"/>
              <add name="ASPNET" type="Telerik.Caching.AspNetCachingProvider, Telerik.Framework" duration="120" slidingExpiration="true"/>
            </providers>
            <cacheDependency mode="InMemory"/>
    </caching>





    Thanks
    Vinamra
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    25 Mar 2010
    Link to this post
    Hello vinamra,

    From the configuration you have posted you could control only CMS objects caching - for instance, if you use page caching, whether this page will use ASPNET cache. Typically this data is stored in memory since retrieving data from memory is much more efficient than retrieving the data from other locations, such as a database. Recycling the application pool is controled by IIS and changing cacheDependency mode will not have effect. cacheDependency  has another mode InDataBase that is used for web farms.

    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.
  3. vinamra
    vinamra avatar
    45 posts
    Registered:
    23 Oct 2012
    26 Mar 2010
    Link to this post
    what changes i have to do in web.config for database cache
  4. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    26 Mar 2010
    Link to this post
    Hello vinamra,

    The caching in Sitefinity is only done in the memory. You can change the cache dependency  - whether it is going to be stored in the database or in the memory. Cache Dependancy is the repository which holds the cache objects state. Generally, it should be set to InDatabase when you work with several servers - so all servers could have the actual cache state information, and to take it from one place. 

    Greetings,
    Georgi
    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
4 posts, 0 answered