mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
expire banner cache when excerpt is updated
This commit is contained in:
parent
672cd92638
commit
a7713ecfc1
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue