Prior to this commit, when we change attributes for a user we might
resave each article. The purpose of the resave is to update some of the
cached attributes of an article.
This removes some redundant code. The following removed code has
an `article.save` call. Which, the callbacks in the article (see below)
already clear the cache.
```ruby
def resave_articles
articles.find_each do |article|
if article.path
cache_bust = EdgeCache::Bust.new
cache_bust.call(article.path)
cache_bust.call("#{article.path}?i=i")
end
article.save
end
end
```
|
||
|---|---|---|
| .. | ||
| bust_cache_worker.rb | ||
| delete_worker.rb | ||
| follow_worker.rb | ||
| merge_sync_worker.rb | ||
| record_field_test_event_worker.rb | ||
| resave_articles_worker.rb | ||
| subscribe_to_mailchimp_newsletter_worker.rb | ||