Skip to content

[NFR]: Lazy write for Session Adapters #17129

@Jeckerson

Description

@Jeckerson

Is your feature request related to a problem? Please describe.
It is not possible to control last time update of file (in case of Stream Adapter). It rewrites time each time.
Inside PHP session configurations exists lazy_write option (https://www.php.net/manual/en/session.configuration.php#ini.session.lazy-write), which can be useful when session last update must not updated.

Describe the solution you'd like
Instead of direct put of data inside file, check if data is not the same when option lasy_write is enabled.

return false !== file_put_contents(name, data, LOCK_EX);

Metadata

Metadata

Assignees

Labels

5.0The issues we want to solve in the 5.0 releasenew feature requestPlanned Feature or New Feature Request
No fields configured for Feature.

Projects

Status
Implemented

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions