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

ability for cache_key to be a block #1326

Merged
merged 4 commits into from Jul 1, 2013

Conversation

Projects
None yet
2 participants
@Ortuna
Member

Ortuna commented Jun 27, 2013

Ref #1064

  • Allows cache_key to be block and get re-evaluated each request.
  • API:
  get '/foo', :cache => true do
     cache_key { param[:id] }
     "my id is #{param[:id}"
  end

DAddYE added a commit that referenced this pull request Jul 1, 2013

Merge pull request #1326 from Ortuna/block-cache-key
ability for cache_key to be a block

@DAddYE DAddYE merged commit 8444f39 into padrino:master Jul 1, 2013

1 check passed

default The Travis CI build passed
Details

@Ortuna Ortuna deleted the Ortuna:block-cache-key branch Jul 1, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment