X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FWiki.php;h=d78d7cb6567bca1d1895cd6d0c46071fb74deefd;hb=ceccc158847c173d5a1c2b388334268222832e4a;hp=5c67e5f8e62591e8be7f9a216a0dbad14ba9e70c;hpb=242c489722acb153c6de752d578c13f411d9ea5a;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Wiki.php b/includes/Wiki.php index 5c67e5f8e6..d78d7cb656 100644 --- a/includes/Wiki.php +++ b/includes/Wiki.php @@ -644,7 +644,8 @@ class MediaWiki { $query['signature'] = ApiRunJobs::getQuerySignature( $query ); if ( !$wgEnableAPI ) { - ApiRunJobs::executeJobs( $n ); // slow fallback + // Fall back to running the job here while the user waits + ApiRunJobs::executeJobs( $n ); return; } @@ -660,7 +661,8 @@ class MediaWiki { wfRestoreWarnings(); if ( !$sock ) { wfDebugLog( 'runJobs', "Failed to start cron API (socket error $errno): $errstr\n" ); - ApiRunJobs::executeJobs( $n ); // slow fallback + // Fall back to running the job here while the user waits + ApiRunJobs::executeJobs( $n ); return; }