-
Notifications
You must be signed in to change notification settings - Fork 1
/
NOTES
46 lines (36 loc) · 1.23 KB
/
NOTES
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
tracks :post # => tags post-1.*
tracks :post => :title # => tags site-1.title
tracks :post => :blog # => tags blog-1.*
tracks :blog => :posts # => tags post-1.*, post-1.*, ...
BaseController
tracks :resource, :current_site => [:title, :sections]
tracks :resource, 'site.title', :site => :sections
BlogController#show
tracks :resource => :posts
=> tags site-1.title
=> tags blog-1.*
=> tags post-1.*, post-2.*, ...
BlogController#create
purges :site => [:section]
=> purge site.sections
BlogController#update
purges :blog => [:title, :path, :categories] ???
=> purge blog-1.title (if title was changed)
=> purge blog-1.path (if path was changed)
=> purge blog-1.categories (if categories were changed)
PostController#show
tracks :resource => :posts
=> tags site-1.title
=> tags blog-1.title, blog-1.path, blog-1.categories
=> tags post-1.*
PostController#create
purges :resource => { :blog => [:posts] }
=> purge blog-1.posts
PostController#update
purges :resource, :resource => { :blog => [:posts] }
=> purge blog-1.posts
=> purge post-1.*
PostController#destroy
purges :resource, :resource => { :blog => [:posts] }
=> purge blog-1.posts
=> purge post-1.*