Skip to content

session cleanup on every request #2061

@laylatichy

Description

@laylatichy

Tempest version

3.6

PHP version

8.5

Operating system

macOS

Description

Im doing some optimizations on my app for queries as I added debug bar and noticed that session cleanup runs on every request

https://github.com/tempestphp/tempest-framework/blob/3.x/packages/http/src/Session/ManageSessionMiddleware.php

$this->sessionManager->deleteExpiredSessions()

there is already command that cleans this up every minute

packages/http/src/Session/CleanupSessionsCommand.php

@innocenzi was there a specific reason for this? Im fine submitting pr but maybe I'm missing osmething

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions