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

Vanilla 2.6 is here! It includes security fixes and requires PHP 7.0. We have therefore ALSO released Vanilla 2.5.2 with security patches if you are still on PHP 5.6 to give you additional time to upgrade.

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?


Sign In or Register to comment.