docbrown/app/workers/articles/bust_cache_worker.rb
Alex d03d03bc39
Update bust_article to BustArticle (#11931)
* Update bust_article to BustArticle

* Fix spec
2020-12-17 12:20:44 -05:00

11 lines
229 B
Ruby

module Articles
class BustCacheWorker < BustCacheBaseWorker
def perform(article_id)
article = Article.find_by(id: article_id)
return unless article
EdgeCache::BustArticle.call(article)
end
end
end