norbert / lazy_sweeper
- Source
- Commits
- Network (1)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Tree:
164ee40
lazy_sweeper / README
| 164ee409 » | norbert | 2008-03-19 | 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 | ||||
