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

Remove caching of auto-converted values #303

Merged
merged 1 commit into from
Dec 17, 2015
Merged

Conversation

grantland
Copy link
Contributor

We cache auto-convert JSONObject/JSONArray values from Map/List which causes confusion when the cached value gets returned instead of fresh values from the server. This PR removes this cache and instead auto-converts JSONObject/JSONArray values from Map/List on every call to getJSONObject(key) and getJSONArray(key).

@grantland
Copy link
Contributor Author

Resolves #282

|| value instanceof ParseACL
|| value instanceof ParseFile
|| value instanceof ParseGeoPoint
|| value instanceof ParseRelation;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than re-formatting, I've removed JSONObject and JSONArray

@facebook-github-bot
Copy link

By analyzing the blame information on this pull request, we identified @grantland and @wangmengyan95 to be potential reviewers.

@grantland
Copy link
Contributor Author

@nlutsenko
Copy link
Contributor

Lovely!

@grantland
Copy link
Contributor Author

Split into two PRs. Combining and unnecessary back and forth conversions moved to #305

@hallucinogen
Copy link
Contributor

I think this is included in #305. LGTM anyway.

We cache auto-convert JSONObject/JSONArray values from Map/List which causes confusion when the cached value gets returned instead of fresh values from the server. This PR removes cache and instead auto-converts JSONObject/JSONArray values from Map/List on every call to getJSONObject(key) and getJSONArray(key).
grantland added a commit that referenced this pull request Dec 17, 2015
Remove caching of auto-converted values
@grantland grantland merged commit e3f68fe into master Dec 17, 2015
@grantland grantland deleted the grantland.cached branch December 17, 2015 20:20
@facebook-github-bot
Copy link

@grantland updated the pull request.

@facebook-github-bot
Copy link

@grantland updated the pull request.

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

Successfully merging this pull request may close these issues.

5 participants