search for: expire_each_pag

Displaying 4 results from an estimated 4 matches for "expire_each_pag".

Did you mean: expire_each_page
2006 Apr 11
11
I can''t get rails to see my plugin. How can I this?
...ted to make sure I could get the plugin seen by rails before I did any real coding. Thanks in advance for any assistance. module ActionController::Caching::Pages::ClassMethods # Expires the page that was cached with the +path+ as a key. Example: # expire_page "/lists/show" def expire_each_page(path) return unless perform_caching benchmaddrk "EXPIRED ALL PAGES: #{page_cache_file(path)}" do File.delete(page_cache_path(path)) if File.exists?(page_cache_path(path)) Dir.foreach(page_cache_path(path)) {|x| benchmark ("Got " + x) } end end end -- Po...
2006 Apr 18
11
how to release a plugin
I''ve developed a very useful (at least to me) plugin for rails. How do I go about releasing it. I have an account with rubyforge but I don''t know how to let rails know about it. Charlie Bowman www.recentrambles.com -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Apr 20
2
Broomstick - Making Sweeping a Little Bit easer
Page sweeping just got a whole lot easier! Rails only offers methods to expire a single page but no methods to expire an entire action or controller. This plugin does just that. This initial release of the plugin only adds one method (expire_each_page() ) to your disposal. Here?s a quick example and exactly how it works. expire_each_page(:controller => ''pragmatic'', :action => ''view'') The above method will call url_for on the controller/action combo and expire all pages that are under public/pragm...
2006 Apr 29
1
Caching foor starters
Hi there... I have some experience in building web applications but all of them have been intranet apps so I have never had to think about things like caching. Actually my experience with caching has more been in the area of removing it since it just gets in the way for a intranet app with 10-100 users. But now I am writing a site which might stand or fall by the quality of it''s