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:
decb91e
)
Make ApiStashEdit::pruneExcessStashedEntries use user name
author
Aaron Schulz
<aschulz@wikimedia.org>
Thu, 28 Mar 2019 01:25:46 +0000
(18:25 -0700)
committer
Aaron Schulz
<aschulz@wikimedia.org>
Thu, 28 Mar 2019 01:25:46 +0000
(18:25 -0700)
Follow up to
c334883309778
Change-Id: I35213d83a00b50bb469aab5bf8fbeb52239cff5e
includes/api/ApiStashEdit.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiStashEdit.php
b/includes/api/ApiStashEdit.php
index
fe5f6c4
..
5184562
100644
(file)
--- a/
includes/api/ApiStashEdit.php
+++ b/
includes/api/ApiStashEdit.php
@@
-477,7
+477,7
@@
class ApiStashEdit extends ApiBase {
* @param string $newKey
*/
private static function pruneExcessStashedEntries( BagOStuff $cache, User $user, $newKey ) {
- $key = $cache->makeKey( 'stash-edit-recent',
$user->getId(
) );
+ $key = $cache->makeKey( 'stash-edit-recent',
sha1( $user->getName()
) );
$keyList = $cache->get( $key ) ?: [];
if ( count( $keyList ) >= self::MAX_CACHE_RECENT ) {