mirror of
https://github.com/discourse/discourse.git
synced 2025-03-26 13:35:39 +08:00
expire banner cache when excerpt is updated
This commit is contained in:
parent
672cd92638
commit
a7713ecfc1
@ -256,6 +256,9 @@ class PostRevisor
|
||||
def update_topic_excerpt
|
||||
excerpt = @post.excerpt(220, strip_links: true)
|
||||
@topic.update_column(:excerpt, excerpt)
|
||||
if @topic.archetype == "banner"
|
||||
ApplicationController.banner_json_cache.clear
|
||||
end
|
||||
end
|
||||
|
||||
def update_category_description
|
||||
|
Loading…
x
Reference in New Issue
Block a user