# |
Mar 8th 2018, 03:34 |
savant |
ah ok |
# |
Mar 8th 2018, 03:33 |
meder |
because i dumped it and there are thousands of them in routecollection? |
# |
Mar 8th 2018, 03:33 |
savant |
Why do you think there are that many routes bound? |
# |
Mar 8th 2018, 03:33 |
meder |
ok |
# |
Mar 8th 2018, 03:33 |
meder |
or is that just a binding |
# |
Mar 8th 2018, 03:33 |
savant |
->connect( |
# |
Mar 8th 2018, 03:32 |
meder |
would that be a ->connect call? |
# |
Mar 8th 2018, 03:32 |
meder |
savant: what call should i look for where it would register a thousand+ etc routes? |
# |
Mar 8th 2018, 03:30 |
savant |
connects the default routes |
# |
Mar 8th 2018, 03:30 |
savant |
https://book.cakephp.org/3.0/en/development/routing.html#fallbacks-method |
# |
Mar 8th 2018, 03:29 |
meder |
savant: what does ->fallbacks do again? |
# |
Mar 8th 2018, 03:25 |
savant |
But ok :slightly_smiling_face: |
# |
Mar 8th 2018, 03:25 |
savant |
I cant really prescribe anything without seeing what you’re working with. |
# |
Mar 8th 2018, 03:25 |
meder |
let me try to study them a little more though, sec |
# |
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? |