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

Issues/3737 AS::Cache.expand_cache_key #3738

Merged
merged 2 commits into from
Nov 23, 2011

Conversation

exviva
Copy link
Contributor

@exviva exviva commented Nov 23, 2011

This pull requests contains fixes for the first 2 points of the issue. I'd be glad to fix the other two problems if I receive a blessing from a core team member :).

I didn't want to squash the commits just yet to demonstrate two cases separately.

(See issue #3737 for more details)

…tuations

`cache_key` method is never called when the argument is a 1-element array
with something that responds to `cache_key`
…tuations (part 2)

`nil` and `false` both expand to `""` (empty string), while `true` expands to
`"true"`; `false` should expand to `"false"`
josevalim added a commit that referenced this pull request Nov 23, 2011
…e_key

Issues/3737 AS::Cache.expand_cache_key
@josevalim josevalim merged commit 2c568f1 into rails:master Nov 23, 2011
schneems referenced this pull request Oct 5, 2018
  * Move #set_cookie and #delete_cookie inline to optimize. These optimizations should
    almost certainly be sent back upstream to Rack. The optimization involves using
    an ivar for cookies instead of indexing into the headers each time.
  * Was able to use a bare Hash for headers now that cookies have their own joining
    semantics (some code assumed that the raw cookies were an Array).
  * Cache blankness of body on body=
  * Improve expand_cache_key for Arrays of a single element (common in our case)
  * Use a simple layout condition check unless conditions are used
  * Cache visible actions
  * Lazily load the UrlRewriter
  * Make etag an ivar that is set on prepare!
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