/**
* @param array $query
- * @return string
+ * @return array|null
*/
function fetchImageQuery( $query ) {
global $wgLanguageCode;
}
/**
- * Like a Http:get request, but with custom User-Agent.
- * @see Http::get
+ * Like a HttpRequestFactory::get request, but with custom User-Agent.
+ * @see HttpRequestFactory::get
+ * @todo Can this use HttpRequestFactory::get() but just pass the 'userAgent' option?
* @param string $url
* @param string $timeout
* @param array $options
return $html;
},
- [ 'pcTTL' => WANObjectCache::TTL_PROC_LONG ]
+ [ 'pcGroup' => 'http-get:3', 'pcTTL' => WANObjectCache::TTL_PROC_LONG ]
);
}