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

Disable turnstile globally, or if redis is selected for storage #4164

Merged
merged 2 commits into from
Dec 16, 2024

Conversation

maccabeelevine
Copy link
Member

No description provided.

@demiankatz demiankatz added this to the 11.0 milestone Dec 16, 2024
Copy link
Member

@demiankatz demiankatz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me, but I'll wait for this to come out of draft and get feedback from @EreMaijala before merging it.

@maccabeelevine maccabeelevine marked this pull request as ready for review December 16, 2024 18:35
@maccabeelevine
Copy link
Member Author

Even if we do support redis when installed (which is now on my todo list), it's also a win here remove the constructor dependency as @demiankatz suggested, and also to make it easier to globally disable turnstile in one place if you have multiple policies, and to avoid the minor resource usage of constructing the turnstile cache if it's not actually going to be needed.

Copy link
Contributor

@EreMaijala EreMaijala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good apart from the nitpicky comment issue.

@demiankatz demiankatz merged commit 178d45f into vufind-org:dev Dec 16, 2024
6 checks passed
@maccabeelevine maccabeelevine deleted the turnstile-disabled branch December 19, 2024 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants