* This check is similar to the HistoryAction one. It prevents things from
getting cached that do not get purged with the page is invalidated.
Change-Id: Ie38ae198b173533937103d66478a9ccb5b086175
public function show(){
global $wgSquidMaxage;
- $this->getOutput()->setSquidMaxage( $wgSquidMaxage );
+ $request = $this->getRequest();
+ if ( $request->getFullRequestURL() == $this->getTitle()->getInternalURL() ) {
+ $this->getOutput()->setSquidMaxage( $wgSquidMaxage );
+ }
+
$this->page->view();
}