mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-06-17 04:17:03 +08:00
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. |
||
|---|---|---|
| .. | ||
| bookmark_guardian.rb | ||
| category_guardian.rb | ||
| ensure_magic.rb | ||
| group_guardian.rb | ||
| post_guardian.rb | ||
| post_revision_guardian.rb | ||
| tag_guardian.rb | ||
| topic_guardian.rb | ||
| user_guardian.rb | ||