Followin 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:- A daemon running on each box
- A Rails plugin to expire cache