Two new cache vars in User
authorAndrew Garrett <werdna@users.mediawiki.org>
Thu, 24 Apr 2008 13:41:05 +0000 (13:41 +0000)
committerAndrew 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

index 66d07b0..7ab5b07 100644 (file)
@@ -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',
        );
 
        /**