mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 06:28:04 +08:00
FIX: reset cache after flags are seed (#28801)
There was a bug report on meta that after deployment, some topics were not loaded properly for 24 hours - https://meta.discourse.org/t/endless-spinner-on-some-posts/323031/17 In this PR we moved the `like` post action type to the database - https://github.com/discourse/discourse/pull/28362 However, flags are cached for performance reasons https://github.com/discourse/discourse/blob/main/app/serializers/site_serializer.rb#L113 After seed, we should ensure that the cache is reset so the site has access to all post-action types.
This commit is contained in:

committed by
GitHub

parent
622d6289e5
commit
2bb740cb16
@ -74,3 +74,5 @@ Flag.unscoped.seed do |s|
|
||||
s.applies_to = %w[Post]
|
||||
s.skip_reset_flag_callback = true
|
||||
end
|
||||
|
||||
Flag.reset_flag_settings!
|
||||
|
Reference in New Issue
Block a user