#11505: Django's TestCase should reset the cache
----------------------------------------+-----------------------------------
          Reporter:  andrewfong         |         Owner:  andrewfong         
            Status:  assigned           |     Milestone:                     
         Component:  Testing framework  |       Version:  SVN                
        Resolution:                     |      Keywords:  cache testing flush
             Stage:  Accepted           |     Has_patch:  1                  
        Needs_docs:  0                  |   Needs_tests:  0                  
Needs_better_patch:  0                  |  
----------------------------------------+-----------------------------------
Changes (by kmike):

 * cc: kmike (added)

Comment:

 There is a pattern to run tests on production machine. With this patch
 e.g. production memcached instance can be flushed after every commit.
 Databases are different because one DB server can handle several databases
 and test database can be created during test setup. I think it can't be
 done for 'test memcached instance'.

 Memcached key space can be easily shared between production and test
 environment using custom cache backend that prepends all key with fixed
 string (giving us an equivalent of 'test database' inside single memcached
 instance). But invalidation is nearly impossible.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11505#comment:5>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

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

Reply via email to