Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product

In this Discussion

Handle php sessions with memcached?

R_JR_J Cheerleader & TroubleshooterMunich Moderator

Would it be a good idea to add

<br /><br /><br />if (c('Cache.Enabled', false) == true && c('Cache.Method', '') == 'memcached') {
    ini_set('session.save_handler', 'memcached');
    ini_set('session.save_path', 'localhost:11211');

to bootstrap.early.php?

I've read somewhere that handling sessions with memcached is good for performance, but I do not know very much about sessions. To my understanding this would be "too late", because I, the client, already have requested something and therefore started a session on the server when bootstrap.early.php is hit. Therefore telling the server to handle sessions with mecached at this point in time have no big impact anymore because it will b resetted on every new request.

So the only place where it could be useful is in the php.ini, correct?


  • LincLinc Vanilla's Bard (and Director of Development) Detroit Vanilla Staff

    Vanilla doesn't use sessions, so my understanding is this would have no effect.

  • R_JR_J Cheerleader & Troubleshooter Munich Moderator

    :surprised: No php sessions? That's why Vanillas session class wasn't helpful to me when I thought about that :dizzy:

    I'm so glad I began this with telling that I have no clue about sessions...

Sign In or Register to comment.