dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f5c8d7
)
Fixed use of long memcached keys in AllPages.
author
Aaron Schulz
<aschulz@wikimedia.org>
Thu, 31 Jan 2013 20:23:16 +0000
(12:23 -0800)
committer
Aaron Schulz
<aschulz@wikimedia.org>
Thu, 31 Jan 2013 20:23:16 +0000
(12:23 -0800)
Change-Id: I1df841aff02aa6de5c9e51008f36e745824da567
includes/specials/SpecialAllpages.php
patch
|
blob
|
history
diff --git
a/includes/specials/SpecialAllpages.php
b/includes/specials/SpecialAllpages.php
index
abfb719
..
84a3fe7
100644
(file)
--- 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__ );