On Thu, Jul 29, 2010 at 6:07 PM, Platonides <[email protected]> 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 . . .)

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to