Skip to content

v 0.7.1

Latest

Choose a tag to compare

@joanhey joanhey released this 06 May 09:51
· 4 commits to master since this release
2de6ad6

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