mirror of
https://github.com/mastodon/mastodon.git
synced 2025-01-24 02:51:43 +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
|
end
|
||||||
|
|
||||||
def custom_stylesheet
|
def custom_stylesheet
|
||||||
if active_sheet_digest.present?
|
if active_custom_stylesheet.present?
|
||||||
stylesheet_link_tag(
|
stylesheet_link_tag(
|
||||||
custom_css_path(active_custom_stylesheet),
|
custom_css_path(active_custom_stylesheet),
|
||||||
host: root_url,
|
host: root_url,
|
||||||
@ -37,13 +37,15 @@ module ThemeHelper
|
|||||||
private
|
private
|
||||||
|
|
||||||
def active_custom_stylesheet
|
def active_custom_stylesheet
|
||||||
['custom', active_sheet_digest]
|
if cached_custom_css_digest.present?
|
||||||
.compact_blank
|
[:custom, cached_custom_css_digest.to_s.first(8)]
|
||||||
.join('-')
|
.compact_blank
|
||||||
|
.join('-')
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def active_sheet_digest
|
def cached_custom_css_digest
|
||||||
Rails.cache.read(:setting_digest_custom_css).to_s.first(8)
|
Rails.cache.read(:setting_digest_custom_css)
|
||||||
end
|
end
|
||||||
|
|
||||||
def theme_color_for(theme)
|
def theme_color_for(theme)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user