http://www.mediawiki.org/wiki/Special:Code/MediaWiki/60970

Revision: 60970
Author:   midom
Date:     2010-01-12 15:23:05 +0000 (Tue, 12 Jan 2010)

Log Message:
-----------
backup

Modified Paths:
--------------
    branches/wmf-deployment/languages/LanguageConverter.php

Modified: branches/wmf-deployment/languages/LanguageConverter.php
===================================================================
--- branches/wmf-deployment/languages/LanguageConverter.php     2010-01-12 
15:21:48 UTC (rev 60969)
+++ branches/wmf-deployment/languages/LanguageConverter.php     2010-01-12 
15:23:05 UTC (rev 60970)
@@ -663,7 +663,8 @@
                $this->mTables = false;
                if($fromcache) {
                        wfProfileIn( __METHOD__.'-cache' );
-                       $this->mTables = $wgMemc->get( $this->mCacheKey );
+                       //$this->mTables = $wgMemc->get( $this->mCacheKey );
+                       $this->mTables = apc_fetch( $this->mCacheKey );
                        wfProfileOut( __METHOD__.'-cache' );
                }
                if ( !$this->mTables || !isset( 
$this->mTables[self::CACHE_VERSION_KEY] ) ) {
@@ -680,7 +681,8 @@
                        $this->postLoadTables();
                        $this->mTables[self::CACHE_VERSION_KEY] = true;
                        
-                       $wgMemc->set($this->mCacheKey, $this->mTables, 43200);
+                       // $wgMemc->set($this->mCacheKey, $this->mTables, 
43200);
+                       apc_store($this->mCacheKey, $this->mTables, 43200);
                        wfProfileOut( __METHOD__.'-recache' );
                }
                wfProfileOut( __METHOD__ );



_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to