Method: Web#refresh_pages_with_references

Defined in:
app/models/web.rb

#refresh_pages_with_references(page_name) ⇒ Object

Clears the display cache for all the pages with references to



150
151
152
153
154
# File 'app/models/web.rb', line 150

def refresh_pages_with_references(page_name)
  select.pages_that_reference(page_name).each { |page| 
    page.revisions.each { |revision| revision.clear_display_cache }
  }
end