This is a migrated thread and some comments may be shown as answers.

DataSource Caching

1 Answer 182 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Jamie
Top achievements
Rank 1
Jamie asked on 02 Aug 2012, 06:12 PM
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

1 Answer, 1 is accepted

Sort by
0
Numan
Top achievements
Rank 1
answered on 06 Aug 2012, 06:52 PM
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).
Tags
Data Source
Asked by
Jamie
Top achievements
Rank 1
Answers by
Numan
Top achievements
Rank 1
Share this question
or