I'v recap the James Bennett blog about :
http://www.b-list.org/weblog/2006/06/06/django-tips-extending-user-model

And I found that he said "You can even use introspection of the object
returned by get_profile() (which is automatically cached, by the way,
to save you from having to hit your database too often) to make your
code completely generic."

So I indeed see the cache process in django/contrib/auth/models.py,
and I have a question that, how to update the cache after I changed
UserProfile information? I can see any clue about it, if the cache
cann't be updated, this will make the information is out of sync. Or
if I can disable this cache process in User Model?

-- 
I like python!
UliPad <<The Python Editor>>: http://wiki.woodpecker.org.cn/moin/UliPad
My Blog: http://www.donews.net/limodou

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to