discourse/lib/guardian
Alan Guo Xiang Tan 7dc0f88acd PERF: Cache categories in Site model.
Profiling showed that we were roughly 10% of a request time creating all
the ActiveRecord objects for categories in the `Site` model on a site with 61 categories.
Instead of querying for the categories each time based on which categories the user can see,
we can just preload all of the categories upfront and filter out the
categories that the user can not see.
2021-06-17 13:17:42 +08:00
..
bookmark_guardian.rb FEATURE: Allow editing bookmark reminders (#9437) 2020-04-17 11:08:07 +10:00
category_guardian.rb PERF: Cache categories in Site model. 2021-06-17 13:17:42 +08:00
ensure_magic.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
group_guardian.rb FIX: Always let moderators to see their group PMs (#10813) 2020-10-05 19:38:08 +03:00
post_guardian.rb FIX: topic might be night at this stage (#12929) 2021-05-03 10:37:43 +02:00
post_revision_guardian.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
tag_guardian.rb DEV: Correct typos and spelling mistakes (#12812) 2021-05-21 11:43:47 +10:00
topic_guardian.rb FIX: Hide a post's pending flag count from TL4 users. (#13129) 2021-05-26 12:58:00 +10:00
user_guardian.rb FEATURE: Add a messages view for all official warnings of a user (#12659) 2021-06-14 14:01:17 -07:00