mirror of
https://github.com/mastodon/mastodon.git
synced 2025-01-08 19:35:11 +01:00
Pyramid approach to private stack in L2 cache on most cores
This commit is contained in:
parent
99c47408b3
commit
454981752d
@ -24,7 +24,7 @@ module ThemeHelper
|
||||
end
|
||||
|
||||
def custom_stylesheet
|
||||
if active_sheet_digest.present?
|
||||
if active_custom_stylesheet.present?
|
||||
stylesheet_link_tag(
|
||||
custom_css_path(active_custom_stylesheet),
|
||||
host: root_url,
|
||||
@ -37,13 +37,15 @@ module ThemeHelper
|
||||
private
|
||||
|
||||
def active_custom_stylesheet
|
||||
['custom', active_sheet_digest]
|
||||
.compact_blank
|
||||
.join('-')
|
||||
if cached_custom_css_digest.present?
|
||||
[:custom, cached_custom_css_digest.to_s.first(8)]
|
||||
.compact_blank
|
||||
.join('-')
|
||||
end
|
||||
end
|
||||
|
||||
def active_sheet_digest
|
||||
Rails.cache.read(:setting_digest_custom_css).to_s.first(8)
|
||||
def cached_custom_css_digest
|
||||
Rails.cache.read(:setting_digest_custom_css)
|
||||
end
|
||||
|
||||
def theme_color_for(theme)
|
||||
|
Loading…
Reference in New Issue
Block a user