discourse/plugins/poll/lib
Régis Hanol 12cba2ce24 PERF: bail out of expensive post validations
Whenever a post already failed "lightweight" validations, we skip all the expensive validations (that cooks the post or run SQL queries) so that we reply as soon as possible.

Also skip validating polls when there's no "[/poll]" in the raw.

Internal ref - t/115890
2024-05-07 18:56:16 +02:00
..
tasks DEV: Apply syntax_tree formatting to `plugins/*` 2023-01-07 11:11:37 +00:00
poll.rb PERF: bail out of expensive post validations 2024-05-07 18:56:16 +02:00
polls_updater.rb DEV: Shorten a condition (#25951) 2024-02-29 12:57:53 +08:00
polls_validator.rb DEV: Apply syntax_tree formatting to `plugins/*` 2023-01-07 11:11:37 +00:00
post_extension.rb DEV: Update rubocop-discourse to latest version 2024-03-04 15:08:35 +01:00
post_validator.rb DEV: Move core plugin TL -> group settings (#25355) 2024-01-23 11:35:14 +10:00
user_extension.rb DEV: Update rubocop-discourse to latest version 2024-03-04 15:08:35 +01:00