New in Symfony 2.4: Limiting Session Metadata Writes

Contributed by
Adrien Brault
in #9119.

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.

Comments

Comments are closed.

To ensure that comments stay relevant, they are closed for old posts.