expire banner cache when excerpt is updated

This commit is contained in:
Sam 2014-11-18 09:21:05 +11:00
parent 672cd92638
commit a7713ecfc1

View file

@ -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