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

The timeWindow option can only be set globally #2

Open
praisane opened this issue Dec 6, 2016 · 1 comment
Open

The timeWindow option can only be set globally #2

praisane opened this issue Dec 6, 2016 · 1 comment

Comments

@praisane
Copy link

praisane commented Dec 6, 2016

It appears that you can only set the timeWindow option once globally, when registering the hapi-brute plugin, thanks to the way how it is used to construct the TTL for the cache the plugin creates.

All other options can be set on a per-route basis when defining once routes, but the timeWindow not. Well it can be set, but it will not have any effect.

@salzhrani
Copy link
Owner

It is because there is a single cache which is configured on server registration. I guess it is possible to instantiate another with a different expiry if the route requires it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants