예제 #1
0
파일: Wiki.php 프로젝트: seedbank/old-repo
 /**
  * Ends this task peacefully
  */
 public function restInPeace()
 {
     // Do any deferred jobs
     DeferredUpdates::doUpdates('commit');
     // Execute a job from the queue
     $this->doJobs();
     // Log message usage, if $wgAdaptiveMessageCache is set to true
     MessageCache::logMessages();
     // Log profiling data, e.g. in the database or UDP
     wfLogProfilingData();
     // Commit and close up!
     $factory = wfGetLBFactory();
     $factory->commitMasterChanges();
     $factory->shutdown();
     wfDebug("Request ended normally\n");
 }
예제 #2
0
파일: Wiki.php 프로젝트: schwarer2006/wikia
 /**
  * Ends this task peacefully
  */
 public function restInPeace()
 {
     MessageCache::logMessages();
     wfLogProfilingData();
     // Commit and close up!
     $factory = wfGetLBFactory();
     $factory->commitMasterChanges();
     $factory->shutdown();
     wfDebug("Request ended normally\n");
 }