I'm playing around with some low-level caching of model instances.
During testing, it's necessary for me to flush out the cache so cached
whatnot from one test doesn't pollute another.

To my knowledge, Django's currently doesn't offer support for
resetting the cache after each testcase in the same way it does for
the test database (via the custom testcase class).

The options I'm looking at:
> Manually (re)starting a separate cache process
> Adding a prefix to my cache keys and changing them for each test case

Ideally, I'd just like to flush the cache but after poking around in
Django's caching code, I haven't seen any explicit support for
flushing. Does anyone have any ideas?

-- andrew
--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to