search for: xml_control

Displaying 2 results from an estimated 2 matches for "xml_control".

Did you mean: bm_control
2005 Jun 26
4
calling controller and caching from a sweeper class
...; which generate feed.xml files, and it uses a caches_page declaration to cache the files that get generated by those actions. It also has a Sweeper (Observer) class that expires those cached files when a blog post is created or modified: http://typo.leetsoft.com/trac/file/trunk/app/controllers/xml_controller.rb http://typo.leetsoft.com/trac/file/trunk/app/models/blog_sweeper.rb The normal behavior is that the files get deleted when expire_cache is called, and then re-created the next time the XmlController action is invoked. Now, I''m trying to force the files to be re-cached immediately...
2006 Jun 14
1
page caching with custom routes
...th expire_page with custom routes i''ll show some code blog_controller --------------- def clear_cache_rss_artikels expire_page url_for(:controller => "xml",:action => "rss_artikels") end this is called when a new article is posted or edited or destroyed xml_controller --------------- class XmlController < ApplicationController caches_page :rss_artikels def rss_artikels @articles = Article.find(:all) end end routes.rb ---------- map.rss "rss/blog/artikels",:controller => "xml",:action => "rss_artikels" when...