diff MoinMoin/macro/OrphanedPages.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 bb2e053067fb
children 09657fbd4aa2
line wrap: on
line diff
--- a/MoinMoin/macro/OrphanedPages.py	Mon May 14 21:50:37 2007 +0200
+++ b/MoinMoin/macro/OrphanedPages.py	Mon May 14 22:03:21 2007 +0200
@@ -13,6 +13,8 @@
 
     if macro.request.mode_getpagelinks: # prevent recursion
         return ''
+    if macro.request.isSpiderAgent: # reduce bot cpu usage
+        return ''
 
     # delete all linked pages from a dict of all pages
     pages = macro.request.rootpage.getPageDict()