Skip to content

Cache ipCheck (2.7) #23098

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

Merged
merged 1 commit into from
Jun 8, 2017
Merged

Cache ipCheck (2.7) #23098

merged 1 commit into from
Jun 8, 2017

Conversation

gonzalovilaseca
Copy link
Contributor

In our app we use trusted proxies. Using Blackfire we found IpUtils::checkIp was being called 454 times taking 3.15ms.
Caching the result saves those 3ms.

Q A
Branch? 2.7
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License MIT
Doc PR

@gonzalovilaseca
Copy link
Contributor Author

2.7 version of #22819

@gonzalovilaseca gonzalovilaseca changed the title Cache ipCheck Cache ipCheck (2.7) Jun 7, 2017
@fabpot
Copy link
Member

fabpot commented Jun 8, 2017

Thank you @gonzalovilaseca.

@fabpot fabpot merged commit bcb8056 into symfony:2.7 Jun 8, 2017
fabpot added a commit that referenced this pull request Jun 8, 2017
This PR was merged into the 2.7 branch.

Discussion
----------

Cache ipCheck (2.7)

In our app we use trusted proxies. Using Blackfire we found `IpUtils::checkIp` was being called 454 times taking 3.15ms.
Caching the result saves those 3ms.

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

Commits
-------

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

Successfully merging this pull request may close these issues.

3 participants