Skip to content

Bugfix for #1850 #2143

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

Merged
merged 3 commits into from
Nov 28, 2014
Merged

Bugfix for #1850 #2143

merged 3 commits into from
Nov 28, 2014

Conversation

xordoquy
Copy link
Collaborator

No description provided.

@tomchristie
Copy link
Member

So what's the upshot of this change then?
Does caching middleware work after this change?
Does anything else potentially break after the change, and what?

@paschembri
Copy link

I tried this and when caching is enabled (whole site) it does not work.

@xordoquy
Copy link
Collaborator Author

@paschembri do you have a code sample we could test against ?
I remember I tried on a "real" api and remove the _closable_objects fixed it (which is basically what this PR is about).

@paschembri
Copy link

Actually the exact setup for the application (that fails with caching enabled) is :
1 x Model => 1 x Serializer (HyperlinkedModelSerializer) => 1 x Collection view (ListCreateAPIView)

But the tricky thing to observe the failure is to use several http clients, I was working with firefox and the developer console (caching enabled server-side) then I tried accessing the api using another browser (so no cookies, no client cache control) and that's when it failed. I did not have to change the ip address to observe the failure.
The message is the one of issue 1850 (no _closable_objects).

EDIT:
The cache management is done using memcached

EDIT2 :
The issue is not raised with a dummycache

@paschembri
Copy link

Ok, something is strange, I just tried again to enable cache on the app and now it's working (with the proposed patch). I believe it was late when I was working on this.
I have an api running on public.netsach.com and I enabled caching (with the proposed patch).
Can you try it with several browser (with an open console so you can see if there is 500 errors) ?

@xordoquy
Copy link
Collaborator Author

Seems to work from here.

@paschembri
Copy link

I guess the patch works as expected

tomchristie added a commit that referenced this pull request Nov 28, 2014
@tomchristie tomchristie merged commit 8d989bb into encode:master Nov 28, 2014
@xordoquy xordoquy deleted the bugfix/1850 branch December 10, 2014 20:28
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.

3 participants