Allow session storage to be configured independently
authorTim Starling <tstarling@wikimedia.org>
Tue, 7 Aug 2012 05:25:46 +0000 (15:25 +1000)
committerTim Starling <tstarling@wikimedia.org>
Wed, 8 Aug 2012 00:25:56 +0000 (10:25 +1000)
commit6eb6313b6f9f8b42dc58bea3f432235b954a2d5c
tree3ebbca2b02710a5345388c353763be2e4ec89310
parent3d60b479de50f5f914677c74f96434a8e139846e
Allow session storage to be configured independently

* Introduce $wgSessionCacheType to allow the session storage to be
  configured independently of $wgMemc.
* Renamed $wgSessionsInMemcached to $wgSessionsInObjectCache to reflect
  the new versatility.
* Modernized the relevant code, removing the explicit require_once(),
  used the autoloader instead. Moved it to ObjectCacheSessionHandler.
* Tested with memcached, external sharded MySQL and APC, it all seems to
  work just fine.

Change-Id: I473334bb56cafb4e21ac1c1304d69095676fc0c4
RELEASE-NOTES-1.20
includes/AutoLoader.php
includes/DefaultSettings.php
includes/GlobalFunctions.php
includes/cache/MemcachedSessions.php [deleted file]
includes/objectcache/ObjectCacheSessionHandler.php [new file with mode: 0644]