sweepyFollowin up on my post about Rails cache on a distributed environment, I recently published a Rails plugin called sweepy. 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. Check out sweepy at github