public
Description: A Rails plugin for sweeping the entire page cache.
Homepage:
Clone URL: git://github.com/norbert/lazy_sweeper.git
Norbert Crombach (author)
Wed Mar 19 07:09:42 -0700 2008
lazy_sweeper / README
100644 14 lines (7 sloc) 0.577 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
= LazySweeper
 
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).
 
Have fun sweeping your entire page cache.
 
Add models by calling <tt>LazySweeper.observe</tt> in an initializer. You can also call <tt>LazySweeper.run</tt> manually if needed.
 
For more information, you can check the Rails Envy article on page caching (2) that also ripped the original code.
 
 
(1):: http://www.fngtps.com/2006/01/lazy-sweeping-the-rails-page-cache
(2):: http://www.railsenvy.com/2007/2/28/rails-caching-tutorial#clearing