Now also work with Workerman/5
Update for 0.7.x to need PHP/8.1 as minimum.
Removed automatic session files clean, now it's manual.
When using debian, PHP autoclean the session files.
As we only need one worker to clean the session, We can create a new Adapterman worker to clean the files.
Or add in our on onWorkerStart :
if ($worker->id === 0) {
Timer::add(600, function(){
Http::tryGcSessions();
});
}Remember that:
Workerman/4 use Workerman\Lib\Timer;
Workerman/5 use Workerman\Timer;
Only if we are using the default session in Adapterman.
If we use a framework that manage the sessions (Symfony, Laravel, ...) we don't need to autoclean.
What's Changed
Full Changelog: 0.7.0...0.7.1