Fix favicon not updating on the client side when changed.

Regression from 1c6a2262b3b57d344a60402eee6b5cbcfab7cf6d.

Documented the rational for include the url since we can't really test
this properly.
This commit is contained in:
Guo Xiang Tan
2019-03-14 15:36:12 +08:00
parent 40b03e717b
commit b9ab393d70
2 changed files with 10 additions and 2 deletions

View File

@ -124,7 +124,7 @@ class StaticController < ApplicationController
is_asset_path
hijack do
data = DistributedMemoizer.memoize("FAVICON#{SiteSetting.favicon&.id}", 60 * 30) do
data = DistributedMemoizer.memoize("FAVICON#{SiteSetting.site_favicon_url}", 60 * 30) do
favicon = SiteSetting.favicon
next "" unless favicon