Log message #4122963

# At Username Text
# Mar 8th 2018, 03:25 meder heh
# Mar 8th 2018, 03:25 meder that each have their own route file
# Mar 8th 2018, 03:25 meder there are 20-25 plugins
# Mar 8th 2018, 03:24 savant And how you link to things?
# Mar 8th 2018, 03:24 savant Can you gist your routes.php file?
# Mar 8th 2018, 03:24 meder i suppose it is, in order to validate a real route
# Mar 8th 2018, 03:24 meder i wonder if it's a necessity for those to get generated
# Mar 8th 2018, 03:24 savant in cake2, I had a PageRoute class
# Mar 8th 2018, 03:24 meder so if you can imagine 2k news articles, 2k routes
# Mar 8th 2018, 03:23 meder 1. i didn't build this 2. there are dynamic routes for permalinks and such, apparently
# Mar 8th 2018, 03:23 savant why do you have that many routes
# Mar 8th 2018, 03:23 meder routes*
# Mar 8th 2018, 03:23 meder i have 3-4k links
# Mar 8th 2018, 03:22 meder does anyone have recommendations on optimizing reverse routing in cake 3+?
# Mar 8th 2018, 00:56 dereuromark you can call this process deferred execution
# Mar 8th 2018, 00:56 dereuromark good night
# Mar 8th 2018, 00:56 dereuromark I use it for sending emails (as everyone should), but also a lot of other things that shouldnt keep the main thread from returning a quick response to the user
# Mar 8th 2018, 00:55 dereuromark talking about basic async thing called queue. put the task into queue, let it work off in background.
# 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..