##// END OF EJS Templates
Don't create one big transaction when doing cache-keys cleanup....
marcink -
r3977:7c84b383 default
parent child Browse files
Show More
@@ -63,7 +63,7 b' class Command(BasePasterCommand):'
63 for c_obj in _caches:
63 for c_obj in _caches:
64 Session().delete(c_obj)
64 Session().delete(c_obj)
65 print 'removing key:%s' % (c_obj.cache_key)
65 print 'removing key:%s' % (c_obj.cache_key)
66 Session().commit()
66 Session().commit()
67 else:
67 else:
68 print 'nothing done exiting...'
68 print 'nothing done exiting...'
69 sys.exit(0)
69 sys.exit(0)
General Comments 0
You need to be logged in to leave comments. Login now