From a28fbf3c93040112c7967cfa659b411c521a6365 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 31 Jan 2013 12:23:16 -0800 Subject: [PATCH] Fixed use of long memcached keys in AllPages. Change-Id: I1df841aff02aa6de5c9e51008f36e745824da567 --- includes/specials/SpecialAllpages.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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__ ); -- 2.20.1