Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache JSON #20

Closed
toddvalentine opened this issue Apr 23, 2014 · 3 comments
Closed

Cache JSON #20

toddvalentine opened this issue Apr 23, 2014 · 3 comments

Comments

@toddvalentine
Copy link

I am using your extension to provide JSON to some jPlayer instances. The JSON returned from the api calls rarely changes. Would it be possible to provide a way to cache a GET request's JSON so we don't have to run the db queries and create the JSON if it hasn't changed from the cache?

@colymba
Copy link
Owner

colymba commented Apr 24, 2014

We could implement a query caching with SS_Cache but it will have to be tested and not sure of the performance gain. Maybe a better solution would be to cache your queries locally (you'll save a lot in server round trip and more...) with LocalStorage or similar, you could cache queries with a QueryString => JSON key/value pair and if the query string already exist return the JSON from LocalStorage otherwise query the server...

@toddvalentine
Copy link
Author

Thanks for bringing LocalStorage to my attention. If you don't feel like the SS_Cache option would provide enough of a performance gain, please feel free to close this issue.

@colymba
Copy link
Owner

colymba commented Apr 24, 2014

Closing for now but I'll keep SS_Cache in the back of my head....

@colymba colymba closed this as completed Apr 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants