mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: deleting category background images sometimes has no effect
This commit is contained in:
@@ -257,7 +257,7 @@ class Stylesheet::Manager
|
||||
def color_scheme_digest
|
||||
|
||||
cs = theme&.color_scheme
|
||||
category_updated = Category.where("uploaded_background_id IS NOT NULL").last_updated_at
|
||||
category_updated = Category.where("uploaded_background_id IS NOT NULL").pluck(:updated_at).map(&:to_i).sum
|
||||
|
||||
if cs || category_updated > 0
|
||||
Digest::SHA1.hexdigest "#{RailsMultisite::ConnectionManagement.current_db}-#{cs&.id}-#{cs&.version}-#{Stylesheet::Manager.last_file_updated}-#{category_updated}"
|
||||
|
||||
Reference in New Issue
Block a user