Navigation Menu

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

ability for cache_key to be a block #1326

Merged
merged 4 commits into from Jul 1, 2013
Merged

Conversation

Ortuna
Copy link
Member

@Ortuna 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
ability for cache_key to be a block
@DAddYE DAddYE merged commit 8444f39 into padrino:master Jul 1, 2013
@Ortuna Ortuna deleted the block-cache-key branch July 1, 2013 13:46
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

2 participants