Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expire_action can expire by the custom path directly #3267

Closed
wants to merge 1 commit into from

Conversation

sishen
Copy link
Contributor

@sishen sishen commented Oct 9, 2011

expire_action can expire the custom path directly instead of passing :controller/:action for url generator.

For example,

caches_action :feed, :cache_path => proc do
    if params[:user_id]
      user_list_url(params[:user_id, params[:id])
    else
      list_url(params[:id])
    end
 end

So we can use expire_action(list_url(params[:id])) to expire the cache.

@isaacsanders
Copy link
Contributor

@sishen Is this still an issue?

@sishen
Copy link
Contributor Author

sishen commented Apr 29, 2012

@isaacsanders I think it should already be fixed by a pull request months later than mine. Thanks.

@rafaelfranca
Copy link
Member

True. This code is already on master. Thanks.

@isaacsanders thanks for helping. If you see any issues that can be closed please ping me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants