Mercurial > moin > 1.9
diff MoinMoin/macro/__init__.py @ 2207:7ae581d79352
updated bot useragents list, reduce bot cpu usage of some macros (ported from 1.5 repo)
author | Thomas Waldmann <tw AT waldmann-edv DOT de> |
---|---|
date | Mon, 14 May 2007 22:03:21 +0200 |
parents | 388f477fd536 |
children | cff573edd028 |
line wrap: on
line diff
--- a/MoinMoin/macro/__init__.py Mon May 14 21:50:37 2007 +0200 +++ b/MoinMoin/macro/__init__.py Mon May 14 22:03:21 2007 +0200 @@ -252,6 +252,8 @@ return self._make_index(args) def _macro_WordIndex(self, args): + if self.request.isSpiderAgent: # reduce bot cpu usage + return '' word_re = u'[%s][%s]+' % (config.chars_upper, config.chars_lower) return self._make_index(args, word_re=word_re)