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:
- 616 Bytes
1 | class PageCache < ActiveRecord::Base |
2 | cattr_accessor :public_path |
3 | @@public_path = ActionController::Base.page_cache_directory |
4 | |
5 | def self.sweep(pattern) |
6 | destroy_all("name like '#{pattern}'") |
7 | end |
8 | |
9 | def self.sweep_all |
10 | destroy_all |
11 | end |
12 | |
13 | private |
14 | |
15 | after_destroy :expire_cache |
16 | |
17 | def expire_cache |
18 | # It'd be better to call expire_page here, except it's a |
19 | # controller method and we can't get to it. |
20 | path = PageCache.public_path + "/#{self.name}" |
21 | |
22 | logger.info "Sweeping #{self.name}" |
23 | delete_file(path) |
24 | end |
25 | |
26 | def delete_file(path) |
27 | File.delete(path) if File.file?(path) |
28 | end |
29 | end |