From: Aaron Schulz Date: Thu, 31 Jan 2013 20:23:16 +0000 (-0800) Subject: Fixed use of long memcached keys in AllPages. X-Git-Tag: 1.31.0-rc.0~20830^2 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=a28fbf3c93040112c7967cfa659b411c521a6365;p=lhc%2Fweb%2Fwiklou.git Fixed use of long memcached keys in AllPages. Change-Id: I1df841aff02aa6de5c9e51008f36e745824da567 --- diff --git a/includes/specials/SpecialAllpages.php b/includes/specials/SpecialAllpages.php index abfb719fa6..84a3fe7e90 100644 --- a/includes/specials/SpecialAllpages.php +++ b/includes/specials/SpecialAllpages.php @@ -194,7 +194,7 @@ class SpecialAllpages extends IncludableSpecialPage { $where[] = 'page_title <= '.$dbr->addQuotes( $to ); global $wgMemc; - $key = wfMemcKey( 'allpages', 'ns', $namespace, $from, $to ); + $key = wfMemcKey( 'allpages', 'ns', $namespace, sha1( $from ), sha1( $to ) ); $lines = $wgMemc->get( $key ); $count = $dbr->estimateRowCount( 'page', '*', $where, __METHOD__ );