r82589 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:< r82588‎ | r82589 | r82590 >
Date:02:33, 22 February 2011
Author:tstarling
Status:ok (Comments)
Tags:
Comment:
Fix for r81460: botched merge conflict resolution when porting r60970 to here caused the apc_store() to be omitted.
Modified paths:
  • /branches/wmf/1.17wmf1/languages/LanguageConverter.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.17wmf1/languages/LanguageConverter.php
——@@ -809,7 +809,8 @@
810810 $this->postLoadTables();
811811 $this->mTables[self::CACHE_VERSION_KEY] = true;
812812
813 - $wgMemc->set( $this->mCacheKey, $this->mTables, 43200 );
 813+ // $wgMemc->set( $this->mCacheKey, $this->mTables, 43200 );
 814+ apc_store($this->mCacheKey, $this->mTables, 43200);
814815 wfProfileOut( __METHOD__ . '-recache' );
815816 }
816817 wfProfileOut( __METHOD__ );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r60970backupmidom15:23, 12 January 2010
r81460Applied local patches for new WMF branchcatrope15:32, 3 February 2011

Comments

#Comment by Platonides (talk | contribs)   10:08, 22 February 2011

That was nasty. Storing in one cache and looking into another.

What's the reason for using apc here over memcached? The lower latency?

#Comment by Tim Starling (talk | contribs)   10:34, 22 February 2011

I'm not sure what Domas's main reason was for patching it. But the object is very large (487KB gzipped) and very commonly requested, so it would have put a lot of load on the memcached server holding it. Also apc_fetch() is faster than unserialize(), so it would give you a reduction in apache CPU time as well.

#Comment by Midom (talk | contribs)   10:38, 22 February 2011

why else, oh why else :-)

Status & tagging log