RubyFlow The Ruby and Rails community linklog

Manually Invoking a Rails Sweeper

Let’s say you have a Rails app, and that app has a Photo model, and that photo model has many Destinations, and the destination pages are cached to disk, and when you update a photo you need to expire all of the current destination pages that photo is currently associated with. Here’s how.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in