DataSource Caching

2 posts, 0 answers
  1. Jamie
    Jamie avatar
    3 posts
    Member since:
    Jun 2012

    Posted 02 Aug 2012 Link to this post

    Hi I was wondering if it were possible to cache a datasource from one page to another. I have seen a previous thread mention that you can use cache: "inmemory" inside the read attribute but that t is cleared when the page is refreshed. Unfortunately my page has to be refreshed on clicks but would like to keep my datasources if the query are the same. Thanks J
  2. Numan
    Numan avatar
    11 posts
    Member since:
    Jan 2012

    Posted 06 Aug 2012 Link to this post

    Unless you have a single page app you can;t really cache a datasource b/c every request is going to request a new page.

    If you have a single page app though, you could make your datasource sharable across pages. In this model, you can think of your datasource as a service (something that lasts during the lifetime of an application).
Back to Top