This project has moved and is read-only. For the latest updates, please go here.

Further explanation of caching a GetListItems result set

Feb 26, 2014 at 8:53 AM
First off, the SPServices JQuery library is awesome and I have used it to develop some sweet functionality (primarily using the GetListItems and FindPeoplePicker functions).

I'm wondering if you could explain further or link me through to some reference material about how exactly you cache the result set from a GetListItems call?

Based off the documentation I know it has to be the exact same call to get the cached data but my main question is how long is the result set cached or more preferably can I specify a timeout (say a day for some calls, a month in other cases)?

The reason i'm asking is i'm querying a whole list (not just individual items) in one of my pages and it would increase the performance of this page if I could cache this particular dataset each day as it is going to be used heavily by our users.
Feb 26, 2014 at 2:33 PM
The caching is only there for the lifespan of the page. If you want to do more long-lasting caching, it's going to be up to you.

My goal in doing the relatively simple caching I added to SPServices was just to cut down on duplicated calls, especially internally.