wfQuery("BEGIN", DB_WRITE);
switch( $action ) {
case "view":
+ $wgOut->setSquidMaxage( $wgSquidMaxage );
+ $wgArticle->$action();
+ break;
case "watch":
case "unwatch":
case "delete":
$editor->$action();
break;
case "history":
+ if ($_SERVER["REQUEST_URI"] == $wgTitle->getInternalURL('action=history')) {
+ $wgOut->setSquidMaxage( $wgSquidMaxage );
+ }
include_once( "PageHistory.php" );
$history = new PageHistory( $wgArticle );
$history->history();
}
$wgOut->output();
+
foreach ( $wgDeferredUpdateList as $up ) { $up->doUpdate(); }
logProfilingData();
wfDebug( "Request ended normally\n" );