Products » Support Forums 

Support Forums

HomeHomeDotNetNuke Modu...DotNetNuke Modu...Url MasterUrl MasterHow to set Cache in DNN application/ site  How to set Cache in DNN application/ site
Previous
 
Next
New Post
2/5/2010 3:21 PM
 

 It is very important to set cache timing for your applications. In DNN application/ site you can set cache in host setting page. To do that you need to login with the application/ site with host login and go to “Host Settings” page. Hit the “Advance Settings” tree and then click on “Performance Settings” link. Then you can find a dropdown where all the cache types are listed, name as below,

  • No Caching: 0
  • Light Caching: 1
  • Moderate Caching: 3
  • Heavy Caching: 6
  • Below is the code I have picked from hostsetting.aspx file (admin\host\hostsettings.ascx). To set the cache time of your site you need to set the value with the cache name which will render in the host settings page under performance settings panel.

    <asp:dropdownlist runat="server" Width="150">
  • <asp:listitem resourcekey="NoCaching" value="0">No Caching</asp:listitem>

    <asp:listitem resourcekey="LightCaching" value="1">Light Caching</asp:listitem>

    <asp:listitem resourcekey="ModerateCaching" value="3">Moderate aching</asp:listitem>

    <asp:listitem resourcekey="HeavyCaching" value="6">Heavy Caching</asp:listitem> 
    </asp:dropdownlist>

    The value in dropdown ranges from 0 to 6. The code above takes the value set in the dropdown and multiplies it by 20 to determine the cache duration.

  • Hope it did add some value

  • thanks

  • Eliza

 
Previous
 
Next
HomeHomeDotNetNuke Modu...DotNetNuke Modu...Url MasterUrl MasterHow to set Cache in DNN application/ site  How to set Cache in DNN application/ site


Support Guidelines.. Please read before posting

To get support on iFinity products and services, please search the forums for the the answer to the problem you are seeking. If you cannot find a solution, post a question in the relevant forum.   Ensure that you specify the relevant versions of the problem, and the actual error message or a detailed description of the problem.    You will need to register with this site to post on the forum.  If you have a Microsoft Live (Hotmail/Passport) account you can use that.  If you have a Open Id account you can use that.  If you neither of these, you will need to register a user Id and password.

Please note : If you are posting a new thread for the Url Master module, please include the following information where applicable:

- Url Master version

- DotNetNuke version

- Example Url where possible

- If there is an error, please post the full error text and/or stack trace (from the DotNetNuke event log).