Hi there,

I'm working on a Django-app that will benefit from having a per
request cache, which means that the cache should reset every time
there is a new request or it finishes a response. I don't want to use
a middleware approach for this, I would like to create an object that
lived within the request scope if that is possible. I was very
surprised to see that when using a Singleton pattern, the object
destructor is not called, it kind of lives forever (or till the memory
collector releases it, I guess) Is this the expected behavior?

Thanks, best regards
Miguel Araujo

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to