Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new options to limit the size of the history #86

merged 2 commits into from May 8, 2019


None yet
1 participant
Copy link

commented May 5, 2019

Adds 2 environment variables to limit the size of the history:

  • HISTORY_SIZE: size of the history (to retrieve lost messages using the Last-Event-ID header), set to 0 to never remove old events (default)
  • HISTORY_CLEANUP_FREQUENCY: chances to trigger history cleanup when an update occurs, must be a number between 0 (never cleanup) and 1 (cleanup after every publication), default to 0.3


  • Add more tests

dunglas added some commits May 5, 2019

@dunglas dunglas merged commit f971fef into master May 8, 2019

2 of 3 checks passed

coverage/coveralls Coverage decreased (-0.3%) to 94.627%
Travis CI - Branch Build Passed
Travis CI - Pull Request Build Passed

@dunglas dunglas deleted the history-cleanup branch May 8, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.