Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

According to the Site.com informational page

Site.com leverages a global network of caching servers that deliver content with fewer server hops

  1. How can I (or can I at all) set cache times for pages in Site.com? I know that apex:page has cache="true" and expires="numberOfSeconds", which defaults to 600, when cache="true".

  2. Can data retrievals be cached? The Salesforce Help Page: Improving Performance Using Caching under the Dynamically Retrieving and Displaying Section states that there is a property for it (see quote below), but I cannot find it on a data repeater or page. What element is it a property of?

The Cache Duration (Minutes) field in the Properties tab controls the length of time to cache retrieved data for the selected data repeater, data table, or data function.

Ideally, these things could be set through the Site.com UI; however, a custom code block (i.e., plain old HTML and/or JavaScript) solution would be a last resort acceptable solution.

share|improve this question
add comment

1 Answer 1

up vote 10 down vote accepted
+50

This is a feature in the next salesforce release (Spring 13), which is tentatively scheduled for next weekend. Since salesforce staggers releases across different clusters, this would explain why some organizations see the feature and others don't. The release documentation is not staggered, which explains why you are able to read about features in a future release.

The feature itself is pretty straightforward, it's the number of minutes you want the data query to be cached (so it doesn't make a full API request and slow down your site).

It is located in a new section of the properties called Cache.

enter image description here

This field appears to be visible on the following data components:

  • Data Function
  • Data Table
  • Data Repeater
share|improve this answer
    
Awesome!!! Do you know if there is any such feature to cache at the page level like there is on the apex:page's cache attribute? –  Peter Knolle Feb 5 '13 at 12:56
    
Awesome! Great answer! –  Jesse Altman Feb 5 '13 at 13:04
    
No way to do it for pages that I know of. In my experience, the slowest part of the pages are usually the data components, so by caching them you're already getting most of the performance improvement that you would get by caching the entire page. –  Ryan Guest Feb 6 '13 at 3:23
    
Will this be available after our org goes to Spring 13. What does this mean? "Available for purchase in: Enterprise and Unlimited Editions". Thanks. –  Richard N Feb 11 '13 at 4:54
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.