mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 07:03: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
|
def update_topic_excerpt
|
||||||
excerpt = @post.excerpt(220, strip_links: true)
|
excerpt = @post.excerpt(220, strip_links: true)
|
||||||
@topic.update_column(:excerpt, excerpt)
|
@topic.update_column(:excerpt, excerpt)
|
||||||
|
if @topic.archetype == "banner"
|
||||||
|
ApplicationController.banner_json_cache.clear
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def update_category_description
|
def update_category_description
|
||||||
|
|
Loading…
Reference in New Issue
Block a user