# |
Dec 16th 2017, 22:10 |
spencdev |
So I got Events up and running, and the event actually consumes an API and doesn't need to receive a response, to the user it wouldn't even matter if it failed, the only thing it would need to do is log it. So to speed it up, and not have the user hang for a second or two, would it be alright to consume the API through cakephp's shell service and just fire an exec? |
# |
Dec 16th 2017, 21:29 |
joopm |
whats wrong with it |
# |
Dec 16th 2017, 21:29 |
joopm |
and i try to save $repositoryReviews |
# |
Dec 16th 2017, 21:29 |
joopm |
$repositoryReviews = $this->RepositoryReviews->patchEntities($repositoryReview, $this->request->getData()); |
# |
Dec 16th 2017, 21:28 |
joopm |
editing many association does not update the id-s insted of create news for them |
# |
Dec 16th 2017, 20:25 |
inoas |
https://gist.github.com/inoas/b8a47dfe532b739ef51d12d36358b618 |
# |
Dec 16th 2017, 20:25 |
inoas |
anyone with pro apache skills - I want to programatically set Content Security Policy headers in .htaccess for the requested domain and all subdomains |
# |
Dec 16th 2017, 17:06 |
dereuromark |
That sounds like a server misconfig, that is a php issue of some sorts then. You could see if you can use any other uuid, e.g.: https://github.com/ramsey/uuid |
# |
Dec 16th 2017, 16:43 |
furqan |
is there any alternate to this method cakeText::uuid() ,that would not take this long |
# |
Dec 16th 2017, 16:42 |
furqan |
any one !!! |
# |
Dec 16th 2017, 16:41 |
furqan |
I know that the uuid ,has to do with the network address of the box ,and it behind the corporate box will have to do with it probably... |
# |
Dec 16th 2017, 16:39 |
furqan |
I logged every line ,and this is the one which is taking 20 seconds to generate a uuid on my office machine -behind corporate proxy ,and the sane code runs on my machine in milli seconds |
# |
Dec 16th 2017, 16:38 |
furqan |
The beforeValidate methods has a uuid generation function CakeText::uuid() |
# |
Dec 16th 2017, 16:37 |
furqan |
On investigating further ,i deduced it was not actually an ORM isssue ,but had to do with beforevalidate method invoked before save is triggered |
# |
Dec 16th 2017, 16:36 |
furqan |
3 days ago ,i ran into an issue where inserting / writing to database through cake ORM ,as per me took 20 seconds where in raw sql was in milli seconds |
# |
Dec 16th 2017, 16:35 |
furqan |
Hi every one @hmic ,hi |
# |
Dec 16th 2017, 13:39 |
saeideng |
if you use DB for strore menu items ... use Cell |
# |
Dec 16th 2017, 13:38 |
saeideng |
`Template/Element/main-menu.ctp ` |
# |
Dec 16th 2017, 12:35 |
maneken |
Hello. I have a variable $menu where I define my site's main menu structure, and then I use it in Template/Element/main-menu.ctp to render the menu markup. What would be the best place to define the $menu array? |
# |
Dec 16th 2017, 12:34 |
jason001 |
hi cake - I'm using cake 3.5 - I'm looking through the docs but can't find an example for joining two queries. so let's say I have 2 subqueries that both contain a matching column, and I wanted to join the 2 - how would I do that in cakephp? |
# |
Dec 16th 2017, 11:55 |
joopm |
just found the reason |
# |
Dec 16th 2017, 11:50 |
joopm |
between this there is nothing happen which can reduce the elements |
# |
Dec 16th 2017, 11:49 |
joopm |
i made a query,pass the view by compact |
# |
Dec 16th 2017, 11:49 |
joopm |
but without the debug only the first element of the hasmany appear in the first input |
# |
Dec 16th 2017, 11:48 |
joopm |
now if i debug the query all the datas appear nice in the inputs |
# |
Dec 16th 2017, 11:48 |
joopm |
i have an edit form for editing hasmany datas |
# |
Dec 16th 2017, 11:48 |
joopm |
i have the following strange issue |
# |
Dec 16th 2017, 10:45 |
nanu |
any onr |
# |
Dec 16th 2017, 10:45 |
nanu |
gys |
# |
Dec 16th 2017, 10:45 |
nanu |
hello |
# |
Dec 15th 2017, 20:07 |
joopm |
and finally saved all desired |
# |
Dec 15th 2017, 20:07 |
joopm |
now i used saveMany with the patcEntities |
# |
Dec 15th 2017, 20:06 |
joopm |
and finally just saved that element |
# |
Dec 15th 2017, 20:06 |
joopm |
so its in every cycle of the foreach its jumps back there,owerwrite the first element |
# |
Dec 15th 2017, 20:05 |
joopm |
but the saving only works for the last item, because i saw in the debug the last saved item was the first element of array |
# |
Dec 15th 2017, 20:04 |
joopm |
its drive me crazy, itried save an entity with foreach |
# |
Dec 15th 2017, 20:04 |
joopm |
hihi |
# |
Dec 15th 2017, 20:03 |
admad |
any last words before you pass on to the after life? |
# |
Dec 15th 2017, 20:00 |
joopm |
but its kill me |
# |
Dec 15th 2017, 20:00 |
joopm |
i found out |
# |
Dec 15th 2017, 19:49 |
joopm |
? |