Handle php sessions with memcached?

R_JR_J Cheerleader & TroubleshooterMunich Moderator

Would it be a good idea to add




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?


Comments

  • LincLinc Director of Development Detroit Vanilla Staff

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

    R_J
  • 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...


    Linc
Sign In or Register to comment.