Thanks @Canapin ![]()
I was thinking I’d have to enable it via the rails console like some other hidden settings.
Would you happen to know what that value is measured in? Is it the number of searches allowed per minute or something?
Thanks @Canapin ![]()
I was thinking I’d have to enable it via the rails console like some other hidden settings.
Would you happen to know what that value is measured in? Is it the number of searches allowed per minute or something?
Exactly this ![]()
For the record, you can see the unit of time it uses here: discourse/app/controllers/search_controller.rb at 8222810099de787e844881da42df1702700b9760 · discourse/discourse · GitHub
RateLimiter.new(nil, "search-min-anon-global", SiteSetting.rate_limit_search_anon_global, 1.minute).performed!
I don’t know how Discourse works, but I always have a copy of the repo on my computer to search for some terms in the code and grab some info, it’s very helpful.
Github search is less effective and often doesn’t return anything.
Excellent, thanks @Canapin and @Falco I shall enable this setting and see how my search logs progress ![]()
Revisiting this in 2026
The rate_limit_search_anon_global site setting doesn’t appear to exist in 2026.
Before I go changing things that I don’t fully understand, could someone please confirm that that these are the settings I should now be editing to adjust the search rate limiting for users that are not logged in?
- rate_limit_search_anon_global_per_minute:
- hidden: true
- default: 150
- rate_limit_search_anon_user_per_minute:
- hidden: true
- default: 15
- rate_limit_search_anon_global_per_second:
- hidden: true
- default: 8
- rate_limit_search_anon_user_per_second:
- hidden: true
- default: 2
And do I need to rebuild the app after making these changes? ![]()
The
rate_limit_search_anon_globalsite setting doesn’t appear to exist in 2026.
Yeah, it was renamed to rate_limit_search_anon_global_per_minute.
Great, thanks for the confirmation ![]()
do I need to rebuild the app after making these changes?
Apparently not, the changes seem to have taken immediate effect.