Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

47 lines (36 sloc) 1.258 kB
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.*
Jump to Line
Something went wrong with that request. Please try again.