On Sep 26, 2006, at 6:06 PM, Greg Plesur wrote:

Hi all,

I'm a new subscriber to this list, and am having an issue that I'm 
hoping you can help me with (I also posted this as a trouble-ticket, 
because I'm not seeing any references to this issue anywhere and it 
seems buggy):

It looks like my models are caching their DB query in a way that I can't 
clear.



Did you read this documentation, especially the last line of this paragraph?


In a newly created QuerySet, the cache is empty. The first time a QuerySet is evaluated -- and, hence, a database query happens -- Django saves the query results in the QuerySet's cache and returns the results that have been explicitly requested (e.g., the next element, if the QuerySet is being iterated over). Subsequent evaluations of the QuerySet reuse the cached results.

Don



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to