discourse/app
Joffrey JAFFEUX 6493ddce17
PERF: limits use of redis cache while building emojis list (#19013)
We were doing get on Redis two times for each emoji while building the custom/standard/all lists which where resulting in ~3710 Redis calls. Given the emoji DB file is loaded in memory while we build/cache the emojis list this is unnecessary and slow.

As a simplification in pseudo code here is an explanation of what we were doing:

```ruby
emojis.each |emoji_name|
  aliases = get_aliases_from_redis_cache(emoji_name)
  is_tonable = get_is_tonable_from_redis_cache(emoji_name)
  build_emoji(emoji_name, aliases, is_tonable)
end
```

The two redis calls are now simplified to a simple hash access: `@db[emoji_name]`
2022-11-14 13:38:50 +01:00
..
assets DEV: Skip a flaky FF test (#18996) 2022-11-14 12:16:00 +01:00
controllers SECURITY: Prevent email from being nil in InviteRedeemer (#19004) 2022-11-14 12:02:06 +10:00
helpers Meta topic: https://meta.discourse.org/t/meta-theme-color-is-not-respecting-current-color-scheme/239815 (#18832) 2022-11-07 10:06:26 +03:00
jobs FEATURE: Add cooked post to user archive exports (#18979) 2022-11-11 11:07:32 +00:00
mailers FEATURE: Custom unsubscribe options (#17090) 2022-06-21 15:49:47 -03:00
models PERF: limits use of redis cache while building emojis list (#19013) 2022-11-14 13:38:50 +01:00
serializers FIX: do not lock account if backup codes are available (#18982) 2022-11-11 13:00:06 +11:00
services FEATURE: Rename onboarding popups to user tips (#18826) 2022-11-09 20:20:34 +02:00
views UX: better password reset error page (#18970) 2022-11-10 17:48:25 +05:30