Newer Version Available

This content describes an older version of this product. View Latest

Cache Frequently Accessed Data

Cache any data that is frequently accessed, such as icon graphics, and cache global data in custom settings.

Visualforce pages sometimes use calculation results globally. The pages use the same data across users and requests. To improve the performance of pages that use global data, cache the calculation results in a custom setting and refresh the results periodically instead of upon every request. Custom settings are part of an application’s cache and don’t require a database query for retrieval. Balance this approach against the time it takes to update custom cached data.