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:
- 944 Bytes
1 | require_dependency 'cache_sweeping_helper' |
2 | |
3 | class RevisionSweeper < ActionController::Caching::Sweeper |
4 | |
5 | include CacheSweepingHelper |
6 | |
7 | observe Revision, Page |
8 | |
9 | def before_save(record) |
10 | if record.is_a?(Revision) |
11 | expire_cached_page(record.page.web, record.page.name) |
12 | expire_cached_revisions(record.page) |
13 | end |
14 | end |
15 | |
16 | def after_save(record) |
17 | if record.is_a?(Revision) |
18 | expire_caches(record.page) |
19 | end |
20 | end |
21 | |
22 | def after_delete(record) |
23 | if record.is_a?(Page) |
24 | expire_caches(record) |
25 | end |
26 | end |
27 | |
28 | private |
29 | |
30 | def expire_caches(page) |
31 | expire_cached_summary_pages(page.web) |
32 | pages_to_expire = ([page.name] + WikiReference.pages_that_reference(page.web, page.name) + |
33 | WikiReference.pages_redirected_to(page.web, page.name) + |
34 | WikiReference.pages_that_include(page.web, page.name)).uniq |
35 | pages_to_expire.each { |page_name| expire_cached_page(page.web, page_name) } |
36 | end |
37 | |
38 | end |