-
Notifications
You must be signed in to change notification settings - Fork 89
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
Caching side effects #82
Comments
Im sorry to hear that. Can you expand?
What do you mean by entity is null? |
Flushing is a good solution... The returned model of the second request don't contain sub entity a, because it was missing on the first request and in the cache |
👍 I also got heavy side-effects and just had to downgrade to
In my case the lead of ID 9 has been loaded with |
@IDragonfire Is there any easy way to test your branch in my project? |
@toadle you first need to run |
@IDragonfire OK, thanks for the advice. Your PR actually solves the cache problem, but introduces another that JSONAPI originally aimed to solve: It causes JSON-object-recursions. Like this, which is a practical example from my app:
Will result in an endless: I suppose it should stop at the point, where in my example the |
@IDragonfire Do you still need me to test the above commit or was #85 enough? |
Fixed by #85 |
The caching from @nicooga 44701c4 has some unexpected side effects ...
Example
You first request is Entity A
Your second request is Entity A again with some included relationships, e.g. SubEntityA
The cache is used for Entity A and SubEntityA is null, but it was send to the Client ...
The text was updated successfully, but these errors were encountered: