Index: trunk/extensions/EditPageTracking/EditPageTracking.php |
— | — | @@ -39,7 +39,7 @@ |
40 | 40 | * Monitors edit page usage |
41 | 41 | */ |
42 | 42 | public static function onEditForm( EditPage $editPage ) { |
43 | | - global $wgUser, $wgEditPageTrackingRegistrationCutoff; |
| 43 | + global $wgUser, $wgEditPageTrackingRegistrationCutoff, $wgMemc; |
44 | 44 | |
45 | 45 | // Anonymous users |
46 | 46 | if ( $wgUser->isAnon() ) { |
— | — | @@ -74,7 +74,7 @@ |
75 | 75 | $dbw->insert( 'edit_page_tracking', $row, __METHOD__ ); |
76 | 76 | |
77 | 77 | $wgUser->mFirstEditPage = $timestamp; |
78 | | - |
| 78 | + |
79 | 79 | $cacheKey = wfMemcKey( 'first-edit-page', $wgUser->getId() ); |
80 | 80 | $wgMemc->set($cacheKey, $timestamp, 86400); |
81 | 81 | |