Revert to arbitrarily old point before initial remote branch creation to help clean up
[lhc/web/wiklou.git] / includes / Wiki.php
index 08e06ea..b20cb95 100644 (file)
@@ -462,8 +462,6 @@ class MediaWiki {
         * @param $page Page
         */
        private function performAction( Page $page ) {
-               global $wgUseSquid, $wgSquidMaxage;
-
                wfProfileIn( __METHOD__ );
 
                $request = $this->context->getRequest();
@@ -482,15 +480,6 @@ class MediaWiki {
 
                $action = Action::factory( $act, $page );
                if ( $action instanceof Action ) {
-                       # When it's a known action, let Squid cache things if we can purge them.
-                       # If the action is unknown, we don't know what may happen in an extension,
-                       # but not caching can be always safe.
-                       if ( $wgUseSquid &&
-                               in_array( $request->getFullRequestURL(), $title->getSquidURLs() )
-                       ) {
-                               $output->setSquidMaxage( $wgSquidMaxage );
-                       }
-
                        $action->show();
                        wfProfileOut( __METHOD__ );
                        return;