Mercurial > moin > 1.9
changeset 5999:12097531880a
RSS feed: check for bots and rather give them empty results than waste a lot of time with them
author | Thomas Waldmann <tw AT waldmann-edv DOT de> |
---|---|
date | Sat, 10 Aug 2013 16:50:23 +0200 |
parents | 603cb1f82ae1 |
children | 2ce7eb7299a1 |
files | MoinMoin/action/rss_rc.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/MoinMoin/action/rss_rc.py Mon Jul 15 19:19:17 2013 +0200 +++ b/MoinMoin/action/rss_rc.py Sat Aug 10 16:50:23 2013 +0200 @@ -56,6 +56,8 @@ request.mimetype = 'text/plain' request.write("rss_rc action is not supported because of missing pyxml module.") return + if request.isSpiderAgent: # reduce bot cpu usage + return '' cfg = request.cfg _ = request.getText