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

@@ -75,6 +75,11 @@ class UsersController < ApplicationController
end
end
def custom_style
@css = CustomCss.parse(CurrentUser.user.custom_style)
expires_in 10.years
end
private
def check_privilege(user)