# HG changeset patch # User Marcin Kuzminski # Date 1371022468 -7200 # Node ID 7c84b383824f3591e0072544cb2d5c32da0df295 # Parent 42bca6fa923b040d77dae781656632f5602280d4 Don't create one big transaction when doing cache-keys cleanup. Should improve locking issues with db transactions when purging large ammount of keys diff -r 42bca6fa923b -r 7c84b383824f rhodecode/lib/paster_commands/cache_keys.py --- a/rhodecode/lib/paster_commands/cache_keys.py Wed Jun 12 01:36:35 2013 +0200 +++ b/rhodecode/lib/paster_commands/cache_keys.py Wed Jun 12 09:34:28 2013 +0200 @@ -63,7 +63,7 @@ for c_obj in _caches: Session().delete(c_obj) print 'removing key:%s' % (c_obj.cache_key) - Session().commit() + Session().commit() else: print 'nothing done exiting...' sys.exit(0)