Commit 74e87f45 authored by Robert Nix's avatar Robert Nix

Enable caching for TippingOver tooltips

parent 36c550f0
......@@ -199,6 +199,7 @@ class APIQueryTooltip extends APIBase {
$this->addResults( $this->getOptions() );
$this->getMain()->setCacheMaxAge( 300 );
$this->getMain()->setCacheMode( 'public' );
}
......
......@@ -351,7 +351,7 @@ var toWikiTooltips = toWikiTooltips || {
data['tooltip'] = tooltipTitleText;
}
$.ajax( {
type : 'POST',
type : 'GET',
url : mw.util.wikiScript( 'api' ),
data : data,
dataType : 'json',
......
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