Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 2
- Log:
Initial import of Instiki 0.11.0 sources from a downloaded Tarball.
Instiki is a Ruby On Rails based Wiki clone.
- Author:
- adh
- Date:
- Sat Jul 22 14:54:51 +0100 2006
- Size:
- 820 Bytes
1 | class RevisionSweeper < ActionController::Caching::Sweeper |
2 | observe Revision, Page |
3 | |
4 | def after_save(record) |
5 | if record.is_a?(Revision) |
6 | expire_caches(record.page) |
7 | end |
8 | end |
9 | |
10 | def after_delete(record) |
11 | if record.is_a?(Page) |
12 | expire_caches(record) |
13 | end |
14 | end |
15 | |
16 | private |
17 | |
18 | def expire_caches(page) |
19 | web = page.web |
20 | |
21 | ([page.name] + WikiReference.pages_that_reference(page.name)).uniq.each do |page_name| |
22 | expire_action :controller => 'wiki', :web => web.address, |
23 | :action => %w(show published), :id => page_name |
24 | end |
25 | |
26 | expire_action :controller => 'wiki', :web => web.address, |
27 | :action => %w(authors recently_revised list) |
28 | expire_fragment :controller => 'wiki', :web => web.address, |
29 | :action => %w(rss_with_headlines rss_with_content) |
30 | end |
31 | |
32 | end |