Manual:$wgCacheSharedUploads

Details
Cache shared metadata in memcached.

Don't do this if the commons wiki is in a different memcached domain.