Cache bust the article's path and add minor improvement for banishing (#3492)

This commit is contained in:
Andy Zhao 2019-07-16 13:17:29 -04:00 committed by Mac Siri
parent b4e493ec30
commit 4da791e5af
2 changed files with 2 additions and 0 deletions

View file

@ -42,6 +42,7 @@ class CacheBuster
def bust_article(article)
bust("/" + article.user.username)
bust(article.path)
bust(article.path + "/")
bust(article.path + "?i=i")
bust(article.path + "/?i=i")

View file

@ -38,6 +38,7 @@ module Moderator
end
article.remove_algolia_index
article.delete
article.purge
end
virtual_articles.each do |article|
cachebuster.bust_article(article)