Avoid edit stash log spam for bots
authorAaron Schulz <aschulz@wikimedia.org>
Sat, 11 Apr 2015 04:06:26 +0000 (21:06 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Sat, 11 Apr 2015 04:06:26 +0000 (21:06 -0700)
Change-Id: I2f9cc86794f8eee282c5efdbe96d4ff981b1977b

includes/page/WikiPage.php

index 6242a54..d5d0ba2 100644 (file)
@@ -2075,7 +2075,7 @@ class WikiPage implements Page, IDBAccessObject {
                }
 
                // The edit may have already been prepared via api.php?action=stashedit
-               $cachedEdit = $useCache && $wgAjaxEditStash
+               $cachedEdit = $useCache && $wgAjaxEditStash && !$user->isAllowed( 'bot' )
                        ? ApiStashEdit::checkCache( $this->getTitle(), $content, $user )
                        : false;