Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 344
- Log:
Massive changeset which brings the old, ROOL customised Instiki
version up to date, but without any ROOL customisations in this
latest checked-in version (which is 0.19.1). This is deliberate,
so that it's easy to see the changes made for the ROOL version
in a subsequent changeset. The 'app/views/shared' directory is not
part of Instiki but is kept to maintain the change history with
updated ROOL customisations, some of which involve the same files
in that same directory.
- Author:
- rool
- Date:
- Sat Mar 19 19:52:13 +0000 2011
- Size:
- 893 Bytes
1 | require_dependency 'cache_sweeping_helper' |
2 | |
3 | class WebSweeper < ActionController::Caching::Sweeper |
4 | |
5 | include CacheSweepingHelper |
6 | |
7 | observe Web, Page, WikiFile |
8 | |
9 | def after_save(record) |
10 | if record.is_a?(Web) |
11 | web = record |
12 | web.pages.each { |page| expire_cached_page(web, page.name) } |
13 | expire_cached_summary_pages(web) |
14 | elsif record.is_a?(WikiFile) |
15 | record.web.pages_that_link_to_file(record.file_name).each do |page| |
16 | expire_cached_page(record.web, page) |
17 | end |
18 | expire_cached_summary_pages(record.web) |
19 | end |
20 | end |
21 | |
22 | def after_destroy(record) |
23 | if record.is_a?(Web) |
24 | expire_cached_summary_pages(record) |
25 | elsif record.is_a?(Page) |
26 | expire_cached_page(record.web, record.name) |
27 | expire_cached_summary_pages(record.web) |
28 | expire_cached_revisions(record) |
29 | else |
30 | expire_cached_summary_pages(record.web) |
31 | end |
32 | end |
33 | |
34 | end |