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

Forums / Set-up & Installation / Page level Caching

Page level Caching

4 posts, 0 answered
  1. Vijaianand
    Vijaianand avatar
    94 posts
    Registered:
    09 Jul 2012
    03 Nov 2008
    Link to this post
    According to the user manual, you can add caching by adding the below section in the web.config file.

    There is one caching provider currently available:

    <caching defaultProvider="memoryCache">

    <providers>

    <add name="memoryCache" type="Telerik.Caching.MemoryCachingProvider, Telerik.Framework" />

    </providers>

    <cacheDependency mode="InMemory"/>

    </caching>

    Where do I add this section in particular?

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    04 Nov 2008
    Link to this post
    Hello VIJAIANAND,

    Caching providers section should exist in your application web.config file as the example below demonstrates.

      <framework> 
          <caching defaultProvider="memoryCache"
            <providers> 
              <add name="memoryCache" type="Telerik.Caching.MemoryCachingProvider, Telerik.Framework" /> 
            </providers> 
            <cacheDependency mode="InMemory" /> 
          </caching> 
       .... 
        </framework> 

    Caching is applied on a page level. In case you have project in Load Balanced Web Farm Environment you should set the mode to InDatabase. Thus, changes you make on one of the sites will be immediately reflected on the other sites.


    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Vijaianand
    Vijaianand avatar
    94 posts
    Registered:
    09 Jul 2012
    04 Nov 2008
    Link to this post
    Hi

    I don't see any caching section in the web.config file. I am not sure why as you said its should be there in all projects. Any reason I am not seeing it? Where does the section actually go in the web.config file?

    VIJAI
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    05 Nov 2008
    Link to this post
    Hello VIJAIANAND,

    Find the attached default web.config from the latest release as an zip archive. I hope you will find the above mentioned section in the previous posts.

    Best wishes,
    Ivan Dimitrov
    the Telerik team

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