HTML caching lets you improve the performance and page rendering of your community’s Site.com site by controlling how often the generated markup of the page is reloaded.
Required Editions
| Available in: Salesforce Classic |
|
Available for purchase in: Enterprise, Performance, and Unlimited Editions Available (with limitations) in: Developer Edition |
| User Permissions Needed | |
|---|---|
| To build, edit, and manage a community’s Site.com custom pages: |
Create and Set Up Communities OR Site.com Publisher User field enabled on the user detail page AND Site administrator or designer role assigned at the site level |
Lets say 100 people visit the page at the same time. Without caching, the page makes 100 separate requests for the same markup, slowing performance considerably. However, with caching enabled, the page markup is requested and retrieved only one time—the first time someone visits the page. Any subsequent page requests during a set time period are returned from the cache. When the specified time period expires, the cache is refreshed.
- In Site.com Studio, open the page.
-
In the Cache Duration (Minutes) field of the Cache section
of the Properties tab, specify the length of time to cache the page.
By default, the caching duration of a page is set to 30 minutes.
To disable caching, set the page’s caching duration to 0.