discourse/lib/middleware
Sam Saffron ed00f35306 FEATURE: improve performance of anonymous cache
This commit introduces 2 features:

1. DISCOURSE_COMPRESS_ANON_CACHE (true|false, default false): this allows
you to optionally compress the anon cache body entries in Redis, can be
useful for high load sites with Redis that lives on a separate server to
to webs

2. DISCOURSE_ANON_CACHE_STORE_THRESHOLD (default 2), only pop entries into
redis if we observe them more than N times. This avoids situations where
a crawler can walk a big pile of topics and store them all in Redis never
to be used. Our default anon cache time for topics is only 60 seconds. Anon
cache is in place to avoid the "slashdot" effect where a single topic is
hit by 100s of people in one minute.
2019-09-04 17:18:32 +10:00
..
anonymous_cache.rb FEATURE: improve performance of anonymous cache 2019-09-04 17:18:32 +10:00
discourse_public_exceptions.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
enforce_hostname.rb SECURITY: enforce hostname to match discourse hostname 2018-11-15 15:23:06 +11:00
missing_avatars.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
omniauth_bypass_middleware.rb FIX: Convert omniauth authenticator names to symbols before comparing 2019-08-14 12:57:11 +01:00
request_tracker.rb FEATURE: anon cache reports data to loggers 2019-09-02 18:45:35 +10:00
turbo_dev.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00