# HG changeset patch # User Marcin Kuzminski # Date 2013-06-12 07:34:28 # 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 --git a/rhodecode/lib/paster_commands/cache_keys.py b/rhodecode/lib/paster_commands/cache_keys.py --- a/rhodecode/lib/paster_commands/cache_keys.py +++ b/rhodecode/lib/paster_commands/cache_keys.py @@ -63,7 +63,7 @@ class Command(BasePasterCommand): 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)