Fixed use of long memcached keys in AllPages.
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 31 Jan 2013 20:23:16 +0000 (12:23 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 31 Jan 2013 20:23:16 +0000 (12:23 -0800)
Change-Id: I1df841aff02aa6de5c9e51008f36e745824da567

includes/specials/SpecialAllpages.php

index abfb719..84a3fe7 100644 (file)
@@ -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__ );