/** * 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"); }
/** * 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"); }