Log message #4122945

# At Username Text
# Mar 8th 2018, 00:52 davinci I know you, so I certainly believe you, but - just not sure what you mean :slightly_smiling_face:
# Mar 8th 2018, 00:51 davinci can't find anything in the book or elsewhere about async countercache
# Mar 8th 2018, 00:31 davinci @dereuromark not sure what you mean - any clarification before I start googling/
# Mar 8th 2018, 00:27 dereuromark you can do it asynchronous
# Mar 8th 2018, 00:22 davinci Using counterCache in v3, and when doing load testing, the counterCache is upwards of 90% of the transaction time. Previously, we've used redis to just keep an ongoing count so to not hit the database and have to count each time, but - is there a better method? Some way to use counterCache but not be so slow? Or.... another method for keeping counts?
# Mar 7th 2018, 23:55 meder and you have a cake2 plugin for it
# Mar 7th 2018, 23:55 meder dereuromark: i guess you logged about this, https://www.dereuromark.de/2012/02/13/what-really-speeds-up-your-cakephp-app/comment-page-1/
# Mar 7th 2018, 23:37 meder there are also 30-40 plugins with routes - is it pulling from all the config/routes.php within each plugin?
# Mar 7th 2018, 23:37 meder i profiled on xdebug and it reported krsort() stemming from Cake\Routing\Routing\RouteCollection::add, i'm dealing with an app that i'm not familiar with but the route collection has hundreds of routes. is there a way to see if it gets dynamically generated?
# Mar 7th 2018, 23:34 davinci thanks
# Mar 7th 2018, 23:32 neothermic also if you're not getting *any* data, consider checking the NR logs
# Mar 7th 2018, 23:30 davinci but I appreciate the pointer
# Mar 7th 2018, 23:30 davinci I'd be happy getting anything at all for now
# Mar 7th 2018, 23:29 neothermic lets you get transaction traces from your shells
# Mar 7th 2018, 23:29 neothermic eh, IMO, don't set background job to true on shells, but consider running them under a different app name
# Mar 7th 2018, 23:28 neothermic as for the shells, we just name each in the shell in question
# Mar 7th 2018, 23:28 davinci File uploaded https://cakesf.slack.com/files/U3J95PPD5/F9M7EVANA/-.txt / https://slack-files.com/T053DPNCM-F9M7EVANA-4edeb7f52c - This is in my bin/cake.php file
# Mar 7th 2018, 23:28 neothermic (obviously you'll need to adjust that slightly for cake3)
# Mar 7th 2018, 23:26 neothermic sure, it's dirty editing core, but it works :P
# Mar 7th 2018, 23:25 neothermic to the invokeAction command :P
# Mar 7th 2018, 23:25 neothermic ``` $controller = $this->name . 'Controller'; $action = $request->params['action']; newrelic_name_transaction($controller.'/'.$action); ```
# Mar 7th 2018, 23:25 neothermic ```
# Mar 7th 2018, 23:25 neothermic see, I just added uh..
# Mar 7th 2018, 23:23 davinci So something's wrong. And their answer of "oh well, we don't support it" isn't right
# Mar 7th 2018, 23:23 davinci that's what I would have thought.
# Mar 7th 2018, 23:22 davinci per instruction from this plugin: https://github.com/jippi/cakephp-newrelic
# Mar 7th 2018, 23:22 dereuromark davinci: exactly, any php code just works with the right lines of code added
# Mar 7th 2018, 23:22 neothermic also remember that NR data is ~3 mins delayed :slightly_smiling_face:
# Mar 7th 2018, 23:22 davinci right - all added
# Mar 7th 2018, 23:20 neothermic If it's anything like cake2, you'll need to consider adding a few lines into core to really get it to log properly
# Mar 7th 2018, 23:20 davinci Ive installed one, and followed the instructions. I'm getting some data, as if it kind of works, but it's very consistent and doesn't spike in any way even when I run a load test on the server
# Mar 7th 2018, 23:19 davinci The response I got from their support team is "We don't support CakePHP 3", yet there are cakephp3+newrelic plugins
# Mar 7th 2018, 23:18 davinci has anyone had success with CakePHP 3 and NewRelic?
# Mar 7th 2018, 18:42 lorenzo cool!
# Mar 7th 2018, 18:42 rafael.junqueira.sant thank you, @lorenzo, that led me to the solution.
# Mar 7th 2018, 18:41 savant I might spend some time looking at the error pages in cake to implement the above stuff :slightly_smiling_face:
# Mar 7th 2018, 18:40 rafael.junqueira.sant there is this small "toggle arguments" anchor
# Mar 7th 2018, 18:40 savant i just pm’d you a link to it
# Mar 7th 2018, 18:40 savant and I get log breadcrumbs too on the sentry page - that would be a nice touch for errors…
# Mar 7th 2018, 18:39 savant this works really nicely for seamstress
# Mar 7th 2018, 18:39 savant @lorenzo I think some integrations at $WORK aren’t setup right