Skip to content

Commit

Permalink
Fixes the "random number of queries" issue sometimes occuring with lo…
Browse files Browse the repository at this point in the history
…cmem.
  • Loading branch information
BertrandBordage committed Dec 7, 2014
1 parent 78332a7 commit d591fb6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@
CACHES = {
'locmem': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
'OPTIONS': {
# We want that limit to be infinite, otherwise we can’t
# reliably count the number of SQL queries executed in tests.
# In this context, 10e9 is enough to be considered infinite.
'MAX_ENTRIES': 10e9,
}
},
'redis': {
'BACKEND': 'redis_cache.cache.RedisCache',
Expand Down

0 comments on commit d591fb6

Please sign in to comment.