mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
PERF: Defer setting of distributed cache in more spots.
See follow up commit for rational.
Follow-up to 8cfe203383
This commit is contained in:
@@ -440,7 +440,7 @@ class Stylesheet::Manager
|
||||
def color_scheme_digest
|
||||
cs = @color_scheme || theme&.color_scheme
|
||||
|
||||
categories_updated = self.class.cache["categories_updated"] ||= begin
|
||||
categories_updated = self.class.cache.defer_get_set("categories_updated") do
|
||||
Category
|
||||
.where("uploaded_background_id IS NOT NULL")
|
||||
.pluck(:updated_at)
|
||||
|
||||
Reference in New Issue
Block a user