Skip to content
Snippets Groups Projects
  • Jared Hancock's avatar
    aec6f406
    Prefer session persistent configuration over database · aec6f406
    Jared Hancock authored
    This will allow setting something in the session and having that value
    override the value from the database. If ->persist() is called for a given
    key, a following ->get() will result in the session persisted value being
    returned. ->set() will still save the value in the database.
    
    This is mostly useful for last-mile scenarios (and future plugins) that need
    to affect the configuration of the system without altering the data in the
    configuration table.
    aec6f406
    History
    Prefer session persistent configuration over database
    Jared Hancock authored
    This will allow setting something in the session and having that value
    override the value from the database. If ->persist() is called for a given
    key, a following ->get() will result in the session persisted value being
    returned. ->set() will still save the value in the database.
    
    This is mostly useful for last-mile scenarios (and future plugins) that need
    to affect the configuration of the system without altering the data in the
    configuration table.