Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


pgte edited this page · 6 revisions

Distributed file cache expiration in Rails

Sweepy allows you to expire file-based cache (page cache and fragment cache) on Rails on multiple boxes.

If you don’t want or don’t need to setup memcached, and just want to simply use Rails page and / or fragment caching, sweepy automatically handles page expiration.

You can use the Rails expire_page and expire_cache API, no need to change existing code.

…with the bonus of sweepy supporting a regexp as a expire_page argument.

Really, what is sweepy?

Sweepy is two things:

  1. A daemon running on each box
  2. A Rails plugin to expire cache

Sweepy is scalable

Sweepy uses UDP broadcasts for cache cleaning. This way you can add as many machines as you want, and cache expiration times will remain the same.


Necessary content:

  1. Install
  2. Configure
  3. Start Daemon

Interested in:

  1. Admin
  2. Protocol
  3. Command Syntax
Something went wrong with that request. Please try again.