Cache bust the article's path and add minor improvement for banishing (#3492)
This commit is contained in:
parent
b4e493ec30
commit
4da791e5af
2 changed files with 2 additions and 0 deletions
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue