@event(u'manager.db_cleanup')
def db_cleanup(manager, session):
 result = session.query(InputCache).filter((InputCache.added < (datetime.now() - timedelta(days=7)))).delete()
 if result:
  log.verbose((u'Removed %s old input caches.' % result))

@ event ( u'manager.db_cleanup' ) def db_cleanup ( manager , session ) : result = session . query ( InputCache ) . filter ( ( InputCache . added < ( datetime . now ( ) - timedelta ( days = 7 ) ) ) ) . delete ( ) if result : log . verbose ( ( u'Removed %s old input caches.' % result ) )
removes old input caches from plugins that are no longer configured .