Tweak for r29770 (yes, some months after it):
[lhc/web/wiklou.git] / includes / MemcachedSessions.php
index 289ea36..e3bcea1 100644 (file)
@@ -5,14 +5,16 @@
  * instead of the local filesystem. Depending on circumstances, it may also
  * be necessary to change the cookie settings to work across hostnames.
  * See: http://www.php.net/manual/en/function.session-set-save-handler.php
+ *
+ * @file
+ * @ingroup Cache
  */
 
 /**
  * @todo document
  */
 function memsess_key( $id ) {
-       global $wgDBname;
-       return "$wgDBname:session:$id";
+       return wfMemcKey( 'session', $id );
 }
 
 /**
@@ -68,5 +70,3 @@ function memsess_gc( $maxlifetime ) {
 }
 
 session_set_save_handler( 'memsess_open', 'memsess_close', 'memsess_read', 'memsess_write', 'memsess_destroy', 'memsess_gc' );
-
-?>