I am attempting to cache a page that varies depending on the URL that
you go to. For example, http://mydomain.com/member_name goes to the
same action and controller as http://mydomain.com/other_member, but
the page is customized to the member.
I am currently accomplishing this with the following:
caches_action :new, :cache_path => :new_cache_path.to_proc
This works fine, but I run into issues when I try and sweep the cache
because im am not sure how I can pass the member_name parameter to the
sweeper. The following is what I am using for a sweeper:
cache_sweeper :member_sweeper, :only => [ :update ]
class MemberSweeper < ActionController::Caching::Sweeper
The members name is being passed to the member controller via the
submitted form, I just need to know if it is possible to pass it to
Thanks for your help!