discourse/lib/middleware
Alan Guo Xiang Tan 8e3691d537 PERF: Eager load Theme associations in Stylesheet Manager.
Before this change, calling `StyleSheet::Manager.stylesheet_details`
for the first time resulted in multiple queries to the database. This is
because the code was modelled in a way where each `Theme` was loaded
from the database one at a time.

This PR restructures the code such that it allows us to load all the
theme records in a single query. It also allows us to eager load the
required associations upfront. In order to achieve this, I removed the
support of loading multiple themes per request. It was initially added
to support user selectable theme components but the feature was never
completed and abandoned because it wasn't a feature that we thought was
worth building.
2021-06-21 11:06:58 +08:00
..
anonymous_cache.rb PERF: Eager load Theme associations in Stylesheet Manager. 2021-06-21 11:06:58 +08:00
discourse_public_exceptions.rb FIX: avoid superflous logging when mime type is bad 2020-01-02 12:34:38 +11:00
enforce_hostname.rb DEV: Correct typos and spelling mistakes (#12812) 2021-05-21 11:43:47 +10: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: Redirect to provided origin after auth (#12558) 2021-03-31 10:23:12 +01:00
request_tracker.rb FEATURE: Ignore anonymous page views on private sites (#12800) 2021-04-26 14:19:47 +03:00
turbo_dev.rb