reimplement r73652 having actually read coding conventions this time
[lhc/web/wiklou.git] / includes / Wiki.php
index 9e16535..0c65b4a 100644 (file)
@@ -379,6 +379,8 @@ class MediaWiki {
                $output->output();
                // Do any deferred jobs
                $this->doUpdates( $deferredUpdates );
+               // Close the session so that jobs don't access the current session
+               session_write_close();
                $this->doJobs();
                wfProfileOut( __METHOD__ );
        }
@@ -449,6 +451,7 @@ class MediaWiki {
         * Ends this task peacefully
         */
        function restInPeace() {
+               MessageCache::logMessages();
                wfLogProfilingData();
                // Commit and close up!
                $factory = wfGetLBFactory();