Users running a non-download version of Vanilla (pulled from github), on branch release/2019.016 or master from the last 2 weeks should upgrade to release/2019.017 or latest master for security reasons. Downloaded official open sources releases are not affected.

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?


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