On Fri, Jul 30, 2010 at 5:32 PM, Aryeh Gregor
<Simetrical+wikilist(a)gmail.com> wrote:
On Thu, Jul 29, 2010 at 6:07 PM, Platonides
<Platonides(a)gmail.com> wrote:
Memcached*
Our $_SESSION simply lives in memcached.
So we could do
$fake_session = $wgMemc->get( wfMemcKey( 'session', $session_id ) ) ;
$fake_session["upload_ok"] = true;
$wgMemc->set( wfMemcKey( 'session', $session_id ), $fake_session, 3600 ) ;
This means that if a memcached server goes down, the information will
be lost. The database is the correct place to put this. (Also the
correct place to put sessions, for that matter . . .)
Also, on places where no memcached or equivalent is available (i.e.
CACHE_NONE), this will not work.
I think the loss of session data due to memcached breakage was found
to be acceptable. Does anybody have some references for this?
Bryan