app/controllers/doc_sweeper.rb
# If our sweeper detects that a doc was created call this
If our sweeper detects that a doc was created call this
If our sweeper detects that a doc was created call this
def after_create(doc)
		expire_fragment("count_docs")
		expire_fragment("count_#{doc.sourcedb}")
		doc.projects.each do |p|
			expire_fragment("count_docs_#{p.name}")
			expire_fragment("count_#{doc.sourcedb}_#{p.name}")
		end
	end
def after_create ( doc ) expire_fragment ( "count_docs" ) expire_fragment ( "count_#{doc.sourcedb}" ) doc . projects . each do | p | expire_fragment ( "count_docs_#{p.name}" ) expire_fragment ( "count_#{doc.sourcedb}_#{p.name}" ) end end
If our sweeper detects that a doc was created call this
If our sweeper detects that a doc was created call this
doc
<not_specific>