fix from live site, set->add for "loading".
authorDomas Mituzas <midom@users.mediawiki.org>
Mon, 11 Oct 2004 04:13:43 +0000 (04:13 +0000)
committerDomas Mituzas <midom@users.mediawiki.org>
Mon, 11 Oct 2004 04:13:43 +0000 (04:13 +0000)
includes/MessageCache.php

index 2a31c0d..eb56bf1 100755 (executable)
@@ -74,7 +74,7 @@ class MessageCache
                                wfDebug( "MessageCache::load(): loading all messages\n" );
                                $this->lock();
                                # Other threads don't need to load the messages if another thread is doing it.
-                               $success = $this->mMemc->set( $this->mMemcKey, "loading", MSG_LOAD_TIMEOUT );
+                               $success = $this->mMemc->add( $this->mMemcKey, "loading", MSG_LOAD_TIMEOUT );
                                if ( $success ) {
                                        wfProfileIn( $fname.'-load' );
                                        $this->loadFromDB();