discourse/lib/guardian
David Taylor b37d2f09ba
PERF: Memoize allowed user fields more efficiently (#8968)
Previously we were caching by user_id, but the there are only two possible outcomes. Therefore we only need to cache two values.

This removes another N+1 query when serializing multiple user cards.
2020-02-14 14:47:16 +00:00
..
bookmark_guardian.rb FEATURE: Improving bookmarks part 2 -- Topic Bookmarking (#8954) 2020-02-13 16:26:02 +10:00
category_guardian.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
ensure_magic.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
group_guardian.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
post_guardian.rb FIX: Recovered posts with no user will be taken over by system user (#8834) 2020-02-06 10:19:04 +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: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
topic_guardian.rb FIX: Recovered posts with no user will be taken over by system user (#8834) 2020-02-06 10:19:04 +02:00
user_guardian.rb PERF: Memoize allowed user fields more efficiently (#8968) 2020-02-14 14:47:16 +00:00