discourse/plugins
Martin Brennan 24ec06ff85
FEATURE: Reintroduce better thread reply counter cache (#21197)
This was reverted in 38cebd3ed5.
The issue was that I was using Discourse.redis.delete_prefixed
which does a slow redis KEYS lookup, which is not advised in
production. This commit removes that, and also ensures the periodical
thread count update only happens if threading is enabled.

I changed to use a redis INCR/DECR for reply count
cache. This avoids a round trip to redis to GET the current
count, and also avoids multi-process issues, where
if there's two processes trying to increment at the
same time, they may both receive the same value, add one
to it, then both write the same value back.
Then, it's only n+1 instead of n+2.

This also prevents almost all chat scheduled jobs from
running if chat is disabled, the only one remaining is
the message retention job.
2023-04-24 09:32:04 +10:00
..
chat FEATURE: Reintroduce better thread reply counter cache (#21197) 2023-04-24 09:32:04 +10:00
discourse-details Update translations (#21055) 2023-04-11 15:45:03 +02:00
discourse-lazy-videos FIX: Add missing translations strings for lazy-videos (#21127) 2023-04-18 07:01:27 -03:00
discourse-local-dates DEV: Support `@debounce` decorator in native class syntax (#20521) 2023-03-03 11:48:58 +00:00
discourse-narrative-bot FIX: Render links with subfolders properly in Discobot 2023-04-17 16:53:00 +02:00
discourse-presence Update translations (#20370) 2023-02-20 11:01:01 +01:00
poll UX: Vertical alignment issues on mobile (#21118) 2023-04-17 22:51:13 +05:30
styleguide Update translations (#20861) 2023-04-05 09:12:48 +02:00