Re: Invalidate cached copy when changes are made.

2011-01-28 Thread Pranav
Thanks for the reply Matias. I'll give signals a try but pagination is definitely a no go. I want to see all the members at a stretch. Isn't there a simple way to tell the django cache to get a new copy, if changes are made? I'm sure the admin or something must have something like what i want

Re: Invalidate cached copy when changes are made.

2011-01-27 Thread Matias Aguirre
You could use signals[1] to update cache on save event, but I think you are approaching the issue in the wrong way, why not paginate[2] the result? Regards, Matías [1]: http://docs.djangoproject.com/en/dev/topics/signals/ [2]: http://docs.djangoproject.com/en/dev/topics/pagination/ Excerpts from

Invalidate cached copy when changes are made.

2011-01-27 Thread Pranav
Hi all, I have a model that ruffly looks like so, Class Member(model); member_id = model.Integerfield(primary_key=True) organization = model.foreignerkey(primary_key=True) transorg = model.foreignerkey() bo_name = model.foreignerkey() member_create