---
schema_version: "1"
id: b54934635caedd94091ad11f1ee0f93156f618ae66582ce82dbfffecbabf9d2f
title: Cache Frequently Accessed Data
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/salesforce-pages-developers-guide/guides/pages/best-practices/best-practices-performance/pages-best-practices-perf-cache.md
canonical_url: https://developer.salesforce.com/docs/platform/salesforce-pages-developers-guide/guide/pages-best-practices-perf-cache.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: f30a94b93b27c860848879234801b9a644c05cf1031aa71ba170a575376a6f10
products:
  - Visualforce Developer Guide
  - Platform Developer Content
---

# 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.

**See Also**  


-   [*Apex Developer Guide*: Use a Visualforce Global Variable for the Platform Cache](https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_platform_cache_global_variable.htm)

