mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 21:43:46 +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…
Reference in New Issue
Block a user