Commit b8f6fbf2 authored by Alexia's avatar Alexia

Bring back these fixes.

parent 2c70e561
......@@ -591,7 +591,7 @@ class AbuseFilter {
$fname = __METHOD__;
$res = ObjectCache::getMainWANInstance()->getWithSetCallback(
$globalRulesKey,
WANObjectCache::TTL_INDEFINITE,
WANObjectCache::TTL_HOUR,
function () use ( $group, $fname, $fields ) {
global $wgAbuseFilterCentralDB;
......@@ -1140,6 +1140,11 @@ class AbuseFilter {
) {
global $wgAbuseFilterLogIP;
if ( strpos( php_sapi_name(), 'cli' ) === 0 ) {
//Get wrecked, AbuseFilter.
return Status::newGood();
}
$logger = LoggerFactory::getInstance( 'StashEdit' );
$statsd = MediaWikiServices::getInstance()->getStatsdDataFactory();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment