bug #23098 Cache ipCheck (2.7) (gonzalovilaseca)
bug #23098 Cache ipCheck (2.7) (gonzalovilaseca)

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
-------

bcb80569cb Cache ipCheck

Pierstoval/symfony,symfony/symfony,lstrojny/symfony,teohhanhui/symfony,chalasr/symfony,smatyas/symfony,pamil/symfony,e-moe/symfony,mvhirsch/symfony,e-moe/symfony,hacfi/symfony,bendavies/symfony,vincentaubert/symfony,joelwurtz/symfony,ragboyjr/symfony,mvhirsch/symfony,damienalexandre/symfony,inso/symfony,stof/symfony,mpdude/symfony,mnapoli/symfony,mnapoli/symfony,tgalopin/symfony,voronkovich/symfony,arjenm/symfony,lyrixx/symfony,docteurklein/symfony,andreia/symfony,gencer/symfony,gimler/symfony,chalasr/symfony,derrabus/symfony,pyrech/symfony,lyrixx/symfony,garak/symfony,teohhanhui/symfony,paradajozsef/symfony,Triiistan/symfony,gencer/symfony,hhamon/symfony,Soullivaneuh/symfony,deguif/symfony,weaverryan/symfony,c960657/symfony,zorn-v/symfony,xabbuh/symfony,ragboyjr/symfony,mihai-stancu/symfony,gonzalovilaseca/symfony,Simperfit/symfony,d-ph/symfony,shieldo/symfony,mpdude/symfony,d-ph/symfony,josephdpurcell/symfony,pyrech/symfony,michaelperrin/symfony,OskarStark/symfony,symfony/symfony,sgehrig/symfony,Tobion/symfony,andrerom/symfony,xabbuh/symfony,gonzalovilaseca/symfony,yceruto/symfony,pyrech/symfony,ro0NL/symfony,damienalexandre/symfony,zorn-v/symfony,zorn-v/symfony,lepiaf/symfony,jvasseur/symfony,OndraM/symfony,yceruto/symfony,frankdejonge/symfony,mnapoli/symfony,Soullivaneuh/symfony,Triiistan/symfony,jderusse/symfony,Slamdunk/symfony,dmaicher/symfony,Einenlum/symfony,sroze/symfony,pierredup/symfony,stof/symfony,nasimnabavi/symfony,gimler/symfony,gonzalovilaseca/symfony,ragboyjr/symfony,arjenm/symfony,garak/symfony,Triiistan/symfony,OndraM/symfony,Nyholm/symfony,Taluu/symfony,dunglas/symfony,jvasseur/symfony,jean-gui/symfony,gonzalovilaseca/symfony,sroze/symfony,localheinz/symfony,andrerom/symfony,ragboyjr/symfony,romaricdrigon/symfony,backbone87/symfony,smatyas/symfony,damienalexandre/symfony,Soullivaneuh/symfony,pamil/symfony,paradajozsef/symfony,gnat42/symfony,garak/symfony,WhiteEagle88/symfony,nicolas-grekas/symfony,1ed/symfony,romaricdrigon/symfony,ajgarlag/symfony,OskarStark/symfony,josephdpurcell/symfony,pamil/symfony,yceruto/symfony,iltar/symfony,michaelperrin/symfony,Deamon/symfony,ajgarlag/symfony,docteurklein/symfony,nasimnabavi/symfony,Pierstoval/symfony,codeclimate-testing/symfony,mihai-stancu/symfony,DavidGarciaCat/symfony,phramz/symfony,mihai-stancu/symfony,DavidGarciaCat/symfony,lstrojny/symfony,Koc/symfony,1ed/symfony,weaverryan/symfony,shieldo/symfony,vincentaubert/symfony,maidmaid/symfony,Tobion/symfony,teohhanhui/symfony,OskarStark/symfony,tucksaun/symfony,stof/symfony,Strate/symfony,andreia/symfony,mnapoli/symfony,Pierstoval/symfony,SpacePossum/symfony,shieldo/symfony,sroze/symfony,Simperfit/symfony,andrerom/symfony,zerkms/symfony,Deamon/symfony,joelwurtz/symfony,lyrixx/symfony,phramz/symfony,nasimnabavi/symfony,andrerom/symfony,HeahDude/symfony,hason/symfony,garak/symfony,curry684/symfony,gimler/symfony,jean-gui/symfony,Amo/symfony,xabbuh/symfony,oleg-andreyev/symfony,damienalexandre/symfony,d-ph/symfony,zcodes/symfony,mweimerskirch/symfony,curry684/symfony,paradajozsef/symfony,pierredup/symfony,inso/symfony,hhamon/symfony,jderusse/symfony,kbond/symfony,alekitto/symfony,inso/symfony,vincentaubert/symfony,Einenlum/symfony,ro0NL/symfony,Tobion/symfony,andreia/symfony,Aliance/symfony,hason/symfony,SpacePossum/symfony,tucksaun/symfony,Simperfit/symfony,curry684/symfony,1ed/symfony,Soullivaneuh/symfony,MatTheCat/symfony,jakzal/symfony,zcodes/symfony,OskarStark/symfony,fabpot/symfony,Koc/symfony,jakzal/symfony,HeahDude/symfony,Koc/symfony,lyrixx/symfony,Slamdunk/symfony,mweimerskirch/symfony,mihai-stancu/symfony,MatTheCat/symfony,sroze/symfony,alekitto/symfony,aeoris/symfony,Aliance/symfony,oleg-andreyev/symfony,derrabus/symfony,jderusse/symfony,lepiaf/symfony,maidmaid/symfony,andreia/symfony,aeoris/symfony,apetitpa/symfony,Deamon/symfony,ro0NL/symfony,mweimerskirch/symfony,michaelperrin/symfony,localheinz/symfony,tgalopin/symfony,localheinz/symfony,smatyas/symfony,voronkovich/symfony,SaschaDens/symfony,smatyas/symfony,hacfi/symfony,romaricdrigon/symfony,fabpot/symfony,zcodes/symfony,smatyas/symfony,voronkovich/symfony,MatTheCat/symfony,jean-gui/symfony,deguif/symfony,pyrech/symfony,hhamon/symfony,nicolas-grekas/symfony,codeclimate-testing/symfony,Pierstoval/symfony,SaschaDens/symfony,Taluu/symfony,gnat42/symfony,SaschaDens/symfony,apetitpa/symfony,zcodes/symfony,jvasseur/symfony,pamil/symfony,kbond/symfony,deguif/symfony,Strate/symfony,weaverryan/symfony,joelwurtz/symfony,zerkms/symfony,mnapoli/symfony,pierredup/symfony,Deamon/symfony,jakzal/symfony,frankdejonge/symfony,SpacePossum/symfony,e-moe/symfony,chalasr/symfony,bendavies/symfony,chalasr/symfony,xabbuh/symfony,SaschaDens/symfony,ajgarlag/symfony,OndraM/symfony,pierredup/symfony,mvhirsch/symfony,dmaicher/symfony,Amo/symfony,codeclimate-testing/symfony,tgalopin/symfony,maidmaid/symfony,nicolas-grekas/symfony,zorn-v/symfony,dmaicher/symfony,Nyholm/symfony,ogizanagi/symfony,iltar/symfony,WhiteEagle88/symfony,derrabus/symfony,stof/symfony,Taluu/symfony,kbond/symfony,weaverryan/symfony,deguif/symfony,kbond/symfony,docteurklein/symfony,alekitto/symfony,phramz/symfony,Nyholm/symfony,Einenlum/symfony,nasimnabavi/symfony,tgalopin/symfony,gimler/symfony,symfony/symfony,jakzal/symfony,Strate/symfony,Simperfit/symfony,inso/symfony,MatTheCat/symfony,OndraM/symfony,michaelperrin/symfony,gencer/symfony,jzawadzki/symfony,ro0NL/symfony,SaschaDens/symfony,Amo/symfony,codeclimate-testing/symfony,paradajozsef/symfony,zerkms/symfony,hhamon/symfony,Koc/symfony,sgehrig/symfony,oleg-andreyev/symfony,frankdejonge/symfony,voronkovich/symfony,d-ph/symfony,backbone87/symfony,mvhirsch/symfony,c960657/symfony,phramz/symfony,Simperfit/symfony,Einenlum/symfony,hason/symfony,localheinz/symfony,lepiaf/symfony,gnat42/symfony,Amo/symfony,backbone87/symfony,SpacePossum/symfony,shieldo/symfony,jzawadzki/symfony,maidmaid/symfony,HeahDude/symfony,Triiistan/symfony,sgehrig/symfony,jderusse/symfony,HeahDude/symfony,inso/symfony,c960657/symfony,alekitto/symfony,ogizanagi/symfony,apetitpa/symfony,WhiteEagle88/symfony,Aliance/symfony,fabpot/symfony,hacfi/symfony,curry684/symfony,jean-gui/symfony,yceruto/symfony,Nyholm/symfony,dunglas/symfony,derrabus/symfony,arjenm/symfony,frankdejonge/symfony,josephdpurcell/symfony,Taluu/symfony,ajgarlag/symfony,apetitpa/symfony,fabpot/symfony,jzawadzki/symfony,arjenm/symfony,e-moe/symfony,nicolas-grekas/symfony,oleg-andreyev/symfony,teohhanhui/symfony,DavidGarciaCat/symfony,mihai-stancu/symfony,aeoris/symfony,Slamdunk/symfony,iltar/symfony,Deamon/symfony,mvhirsch/symfony,sgehrig/symfony,Triiistan/symfony,ogizanagi/symfony,tucksaun/symfony,c960657/symfony,Amo/symfony,tucksaun/symfony,romaricdrigon/symfony,jvasseur/symfony,vincentaubert/symfony,OndraM/symfony,bendavies/symfony,SpacePossum/symfony,joelwurtz/symfony,mweimerskirch/symfony,Slamdunk/symfony,dunglas/symfony,mpdude/symfony,iltar/symfony,bendavies/symfony,Soullivaneuh/symfony,gnat42/symfony,docteurklein/symfony,Tobion/symfony,1ed/symfony,symfony/symfony,lstrojny/symfony,dmaicher/symfony,docteurklein/symfony,ogizanagi/symfony,mweimerskirch/symfony,zerkms/symfony,mpdude/symfony