I''m trying to expire all pages under my view action. These could be /controller/view/1 or /controller/view/1/2 how can I expire all pages under /controller/view/? There must be a way, but I''m stumped. Here''s my broken attempt. Thanks in advance for any help,suggestions, or directions to a how to page. expire_action(:controller => ''/pragmatic'', :action => ''view'', :id => %r{\d*}, :page => %r{\d*}) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060410/cf8681e8/attachment.html
Still no luck here. I''ve also tried this but all it did was expire the view.html page expire_action(:controller => ''/pragmatic'', :action => ''view'') On Mon, 2006-04-10 at 11:53 -0400, Charlie Bowman wrote:> I''m trying to expire all pages under my view action. These could > be /controller/view/1 or /controller/view/1/2 > > how can I expire all pages under /controller/view/? There must be a > way, but I''m stumped. Here''s my broken attempt. Thanks in advance > for any help,suggestions, or directions to a how to page. > > > > > expire_action(:controller => ''/pragmatic'', > :action => ''view'', > :id => %r{\d*}, > :page => %r{\d*}) > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060410/aa4ed49b/attachment.html
I''m interested in this as well... however for right now, I''ve taken this approach and modified it to suit my needs: http://www.fngtps.com/2006/01/lazy-sweeping-the-rails-page-cache On 4/10/06, Charlie Bowman <charlie@castlebranch.com> wrote:> > Still no luck here. I''ve also tried this but all it did was expire the > view.html page > expire_action(:controller => ''/pragmatic'', > :action => ''view'') > > > > > > > On Mon, 2006-04-10 at 11:53 -0400, Charlie Bowman wrote: > > I''m trying to expire all pages under my view action. These could be > /controller/view/1 or /controller/view/1/2 > > how can I expire all pages under /controller/view/? There must be a way, > but I''m stumped. Here''s my broken attempt. Thanks in advance for any > help,suggestions, or directions to a how to page. > > > > > expire_action(:controller => ''/pragmatic'', > :action => ''view'', > :id => %r{\d*}, > :page => %r{\d*}) > > _______________________________________________Rails mailing listRails@lists.rubyonrails.orghttp://lists.rubyonrails.org/mailman/listinfo/rails > > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060410/5b37e104/attachment.html
Thanks, it seems that is the route I''ll go untill I figure out how to just delete specific files under the public/controller/action directory. On Mon, 2006-04-10 at 13:13 -0500, Brian Hogan wrote:> I''m interested in this as well... however for right now, I''ve taken > this approach and modified it to suit my needs: > > http://www.fngtps.com/2006/01/lazy-sweeping-the-rails-page-cache > > > > > On 4/10/06, Charlie Bowman <charlie@castlebranch.com> wrote: > > Still no luck here. I''ve also tried this but all it did was > expire the view.html page > expire_action(:controller => ''/pragmatic'', > :action => ''view'') > > > > > > > On Mon, 2006-04-10 at 11:53 -0400, Charlie Bowman wrote: > > > I''m trying to expire all pages under my view action. These > could be /controller/view/1 or /controller/view/1/2 > > how can I expire all pages under /controller/view/? There > must be a way, but I''m stumped. Here''s my broken attempt. > Thanks in advance for any help,suggestions, or directions to a > how to page. > > > > > > expire_action(:controller => ''/pragmatic'', > :action => ''view'', > :id => %r{\d*}, > :page => %r{\d*}) > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060410/ef004636/attachment.html