Mercurial > kallithea
changeset 6040:21f1237772bb
cache-keys: optimize --delete - don't commit after every deleted key
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Thu, 28 Jul 2016 16:28:34 +0200 |
parents | b7ec26b3df1b |
children | 0bac887ea148 |
files | kallithea/lib/paster_commands/cache_keys.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/lib/paster_commands/cache_keys.py Thu Jul 28 16:28:34 2016 +0200 +++ b/kallithea/lib/paster_commands/cache_keys.py Thu Jul 28 16:28:34 2016 +0200 @@ -64,7 +64,7 @@ for c_obj in _caches: Session().delete(c_obj) print 'Removing key: %s' % (safe_str(c_obj.cache_key)) - Session().commit() + Session().commit() else: print 'Nothing done, exiting...'