X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2FMediaWiki.php;h=9e3bc10467d2f783de3db13d8ac6623078380709;hp=0f40c1920180286cbd829f13fdcf09be15a8e1c2;hb=88ba64343b1a5af32d76555199596dfc0431ca67;hpb=a3d615394c9ed51dacb77b215ba30a43358cdd62 diff --git a/includes/MediaWiki.php b/includes/MediaWiki.php index 0f40c19201..9e3bc10467 100644 --- a/includes/MediaWiki.php +++ b/includes/MediaWiki.php @@ -367,7 +367,7 @@ class MediaWiki { } throw new HttpError( 500, $message ); } - $output->setSquidMaxage( 1200 ); + $output->setCdnMaxage( 1200 ); $output->redirect( $targetUrl, '301' ); return true; } @@ -884,7 +884,9 @@ class MediaWiki { $trxProfiler = Profiler::instance()->getTransactionProfiler(); $trxProfiler->resetExpectations(); $trxProfiler->setExpectations( - $this->config->get( 'TrxProfilerLimits' )['PostSend'], + $this->context->getRequest()->hasSafeMethod() + ? $this->config->get( 'TrxProfilerLimits' )['PostSend-GET'] + : $this->config->get( 'TrxProfilerLimits' )['PostSend-POST'], __METHOD__ );