Fix #4111: Cache custom CSS.

This commit is contained in:
evazion
2019-08-01 00:06:18 -05:00
parent efc5487dd6
commit 692981e964
5 changed files with 18 additions and 12 deletions

View File

@@ -32,7 +32,7 @@
<%= javascript_pack_tag "application" %>
<%= stylesheet_pack_tag "application" %>
<% if CurrentUser.user.custom_style.present? %>
<%= stylesheet_link_tag custom_style_users_path, :media => "screen" %>
<%= stylesheet_link_tag custom_style_users_path(md5: Digest::MD5.hexdigest(CurrentUser.user.custom_style)), media: "screen" %>
<% end %>
<% if Danbooru.config.twitter_site %>
<script type="application/ld+json">

View File

@@ -1 +1 @@
<%= raw CurrentUser.user.presenter.custom_css %>
<%= raw @css %>