New in Symfony 2.4: Limiting Session Metadata Writes
November 5, 2013 • Published by Fabien Potencier
Warning: This post is about an unsupported Symfony version. Some of this information may be out of date. Read the most recent Symfony Docs.
Today's blog post is as easy as it can get, as this new feature comes with a dedicated cookbook entry in the Symfony documentation.
In Symfony 2.4, the new framework.session.metadata_update_threshold
setting
lets you define a certain amount of time between two session writes when
nothing (except the metadata) changes in your session. Setting it to a large
value helps with performance, but at the same time, it can lead to sessions
being garbage collected too early.
Reading the cookbook is the best way to learn more about the trade-offs.
Help the Symfony project!
As with any Open-Source project, contributing code or documentation is the most common way to help, but we also have a wide range of sponsoring opportunities.
Comments are closed.
To ensure that comments stay relevant, they are closed for old posts.