Skip to content

Configure optimistic cache TTL-value #284

@iJorgen

Description

@iJorgen

Background

If a stale record is served to a client and the IP-address have changed for the record, 10 seconds feels like a really long time and could give a timeout error message. Personally I would use 1-2 seconds to get an updated record available faster to the client having connection issues. I have tried to optimize my cache-size to not store too many records, but with this settings you can use a bigger cache since in the case of a changed IP-address it's all solved in 1-2 seconds without the user noticing anything.

Solution

It would be really nice to configure the optimistic cache TTL value through the config-file instead of the hard-coded 10 seconds.

const optimisticTTL = 10

Low hanging fruit?! :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions