From: Andrew Garrett Date: Thu, 24 Apr 2008 13:41:05 +0000 (+0000) Subject: Two new cache vars in User X-Git-Tag: 1.31.0-rc.0~48088 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=3b154e1ed270bcaa6cb11c7895eda6858238f79d;p=lhc%2Fweb%2Fwiklou.git Two new cache vars in User * 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. --- diff --git a/includes/User.php b/includes/User.php index 66d07b0863..7ab5b0761a 100644 --- 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', ); /**