norbert / lazy_sweeper

A Rails plugin for sweeping the entire page cache.

This URL has Read+Write access

norbert (author)
Wed Mar 19 07:09:42 -0700 2008
commit  164ee409938e612fcb26d9a779ffcbbb63b43787
tree    fe8126ca9eba16c459805654ca711cd93a97325b
lazy_sweeper / README
164ee409 » norbert 2008-03-19 Import existing files. 1 = LazySweeper
2
3 This is one of the best solutions for the second hardest thing in CS. It is based on a post by the guys at Fingertips (1).
4
5 Have fun sweeping your entire page cache.
6
7 Add models by calling <tt>LazySweeper.observe</tt> in an initializer. You can also call <tt>LazySweeper.run</tt> manually if needed.
8
9 For more information, you can check the Rails Envy article on page caching (2) that also ripped the original code.
10
11
12 (1):: http://www.fngtps.com/2006/01/lazy-sweeping-the-rails-page-cache
13 (2):: http://www.railsenvy.com/2007/2/28/rails-caching-tutorial#clearing