Simple, manual disk-based caching system for ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


There are lots of caching options out there for Rails and Sinatra. But none of them where exactly what I wanted. They did what they were supposed to do, but not always what I wanted them to do.

I had several sites that had database backends, but the data rarely changed.

I wanted a way to basically make it a static site until the data changes and then recompile the site.

So I created this little gem to do only what I wanted thinking it may meet the needs of others as well.

You basically tell it where you want to put the files (typically .html files).

You manually place the files in the cache and manually remove them from the cache. There is also a mechanism for clearing the entire cache when a specified file changes.

There's nothing complex here.