Permalink
Browse files

Merge 4ba7d0a into 4d9e4c6

  • Loading branch information...
2 parents 4d9e4c6 + 4ba7d0a commit 93f37820f1f5edc17b48d01ddfaae2de1ae31423 @gsong gsong committed Aug 11, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 django/core/cache/backends/db.py
@@ -179,6 +179,7 @@ def clear(self):
table = connections[db].ops.quote_name(self._table)
cursor = connections[db].cursor()
cursor.execute('DELETE FROM %s' % table)
+ transaction.commit_unless_managed(using=db)
# For backwards compatibility
class CacheClass(DatabaseCache):

0 comments on commit 93f3782

Please sign in to comment.