-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[NFR]: Lazy write for Session Adapters #17129
Copy link
Copy link
Closed
Labels
5.0The issues we want to solve in the 5.0 releaseThe issues we want to solve in the 5.0 releasenew feature requestPlanned Feature or New Feature RequestPlanned Feature or New Feature Request
Metadata
Metadata
Assignees
Labels
5.0The issues we want to solve in the 5.0 releaseThe issues we want to solve in the 5.0 releasenew feature requestPlanned Feature or New Feature RequestPlanned Feature or New Feature Request
Type
Fields
Give feedbackNo fields configured for Feature.
Projects
StatusShow more project fields
Implemented
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_writeoption (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_writeis enabled.cphalcon/phalcon/Session/Adapter/Stream.zep
Line 145 in 634e723