Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 15
- Log:
Attempt to update Typo to a Typo SVN HEAD release from around the
time the prototype installation was set up on the RISC OS Open Limited
web site. Timestamps place this at 04-Jul so a revision from 05-Jul or
earlier was pulled and copied over the 2.6.0 tarball stable code.
- Author:
- adh
- Date:
- Sat Jul 22 23:27:35 +0100 2006
- Size:
- 571 Bytes
1 | class BlogSweeper < ActionController::Caching::Sweeper |
2 | observe Article, Category, Comment, Trackback, Page, Blog, Sidebar, User |
3 | |
4 | def after_save(record) |
5 | expire_for(record) |
6 | end |
7 | |
8 | def after_destroy(record) |
9 | expire_for(record) |
10 | end |
11 | |
12 | def expire_for(record) |
13 | case record |
14 | when Blog, Sidebar, Category, Comment, Trackback, Article, User |
15 | PageCache.sweep_all |
16 | expire_fragment(/.*/) |
17 | when Page |
18 | PageCache.sweep("/pages/#{record.name}.html") |
19 | expire_fragment(/.*\/pages\/.*/) |
20 | expire_fragment(/.*\/view_page.*/) |
21 | end |
22 | end |
23 | end |