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:
bcc00b4
)
Two new cache vars in User
author
Andrew Garrett
<werdna@users.mediawiki.org>
Thu, 24 Apr 2008 13:41:05 +0000
(13:41 +0000)
committer
Andrew Garrett
<werdna@users.mediawiki.org>
Thu, 24 Apr 2008 13:41:05 +0000
(13:41 +0000)
* Cache mRights. If a hook adds some rights, then that hook needs to be called again and again without caching (e.g. upcoming changes to CentralAuth to add global groups)
* Cache mEmail.
includes/User.php
patch
|
blob
|
history
diff --git
a/includes/User.php
b/includes/User.php
index
66d07b0
..
7ab5b07
100644
(file)
--- a/
includes/User.php
+++ b/
includes/User.php
@@
-96,6
+96,7
@@
class User {
'mOptions',
'mTouched',
'mToken',
+ 'mEmail',
'mEmailAuthenticated',
'mEmailToken',
'mEmailTokenExpires',
@@
-103,6
+104,7
@@
class User {
'mEditCount',
# user_group table
'mGroups',
+ 'mRights',
);
/**