Log the session cache type along with other cache types
authorBrad Jorsch <bjorsch@wikimedia.org>
Wed, 6 Jul 2016 21:19:25 +0000 (17:19 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Wed, 6 Jul 2016 21:19:25 +0000 (17:19 -0400)
We already log the types of the main, WAN, stash, message, and parser
caches. For debugging, it would be useful to log the session cache too
instead of having to guess that it's probably the same as the main
cache.

Change-Id: I13e6c0f7f430f96be50d543a32c232f0c36dcd72

includes/Setup.php

index 5877932..cb1bd71 100644 (file)
@@ -690,7 +690,9 @@ wfDebugLog( 'caches',
        ', WAN: ' . $wgMainWANCache .
        ', stash: ' . $wgMainStash .
        ', message: ' . get_class( $messageMemc ) .
-       ', parser: ' . get_class( $parserMemc ) );
+       ', parser: ' . get_class( $parserMemc ) .
+       ', session: ' . get_class( ObjectCache::getInstance( $wgSessionCacheType ) )
+);
 
 Profiler::instance()->scopedProfileOut( $ps_memcached );