Commit 029e5775 authored by Michael Chaudhary's avatar Michael Chaudhary

Merge branch 'tipping-over-caching' into 'master'

Enable caching for TippingOver tooltips

See merge request !49
parents 30d77867 74e87f45
......@@ -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