Maintaining a fast Clip-Bucket powered website when you are getting more and more traffic can be a challenging task most of the time. Today I will show you a simple trick that will speed up your website and reduce the database usage and size quite a bit. You will learn how to stop recording guest sessions in v2.6.
1. Open ./includes/classes/session.class.php
2. Find
$this->get_user_session($user,$name,true);
and before that line, add
if($user != 0) {
3. Find
//Finally Registering session $this->session_register($name); $this->session_val($name,$value); }
and after that, add a closing curly bracket
}
4. Save & Upload
That’s it! With this quick tweak, guest sessions will be recorded no more. Should you have any questions or comments, please leave a comment and I’ll get back to you ASAP.
Best Regards,
Richi González
THANKS!!