Activity Forums Salesforce® Discussions Difference between session cache and org cache in salesforce

  • Kumar

    Member
    January 11, 2017 at 7:22 am

    Hi Vikas,

    The difference between them is as follows:

    Org Cache
    Org cache stores org-wide data that anyone in the org can use. Org cache is accessible across sessions, requests, and org users and profiles.

    For example, weather data can be cached and displayed for contacts based on their location. Or daily snapshots of currency exchange rates can be cached for use in an app.

    Session Cache
    Session cache stores data for an individual user and is tied to that user’s session. The maximum life of a session is 8 hours.

    For example, suppose that your app calculates the distance from a user’s location to all customers the user wishes to visit on the same day. The location and the calculated distances can be stored in the session cache. That way, if the user wants to get this information again, the distances don’t need to be recalculated. Or, you might have an app that enables users to customize their navigation tab order and reuse that order as they visit other pages in the app.

    Hope this helps.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos