Log message #4180846

# At Username Text
# Mar 26th 2019, 14:38 Albatros Hi there, is there any free project on the github (CakePhp) which we can see code and "Best practice" or something similair?
# Mar 26th 2019, 14:37 slackebot2 <paul_83uk>
# Mar 26th 2019, 14:36 paul_83uk Hi All, I'm a little lost with how cakephp 3.5+ manages cookies (really do miss the simplicity of the CookieComponent) I simply want to delete a cookie but am not sure how to do it reading through the docs theres very little info about how to manage cookies
# Mar 26th 2019, 13:34 ricksaccous I'm guessing I have to use 3.13.1, alright awesome
# Mar 26th 2019, 13:34 dereuromark not too bad I guess
# Mar 26th 2019, 13:34 ricksaccous how bad would that be? heh
# Mar 26th 2019, 13:34 ricksaccous @dereuromark i might have to use the one compatible with 3.6 as things are a bit behind here
# Mar 26th 2019, 13:31 ricksaccous thanks for the plugin ;)
# Mar 26th 2019, 13:31 ricksaccous beautiful
# Mar 26th 2019, 13:30 dereuromark the queue got some cool updates recently, we are using it quite heavily for a lot of internal processing, and it is very stable and without any issues so far for 3+ workers in parallel.
# Mar 26th 2019, 13:29 ricksaccous read*
# Mar 26th 2019, 13:29 ricksaccous awesome i'll ready more into it, this will be a great solution for us
# Mar 26th 2019, 13:28 dereuromark the nice thing about this: each indiviual fail can be auto-retried e.g. once. and only if that still didnt work someone has to manually intervene.
# Mar 26th 2019, 13:27 dereuromark otherwise you need to use apps like mailchimp to process higher amounts without gateway timeouts.
# Mar 26th 2019, 13:27 ricksaccous i wonder what the limitations on my gateway are now, but that's pretty nifty
# Mar 26th 2019, 13:27 ricksaccous heh, cool
# Mar 26th 2019, 13:27 dereuromark why not? you can process thousands per hour easily. if your gateway is fine with this.
# Mar 26th 2019, 13:27 ricksaccous so that would work fine?
# Mar 26th 2019, 13:26 dereuromark you just sent all 400 as queue tasks to the queue. the workers process them invividually, until queue is empty. depending on how many workers, there could be a few sent in parallel.
# Mar 26th 2019, 13:26 ricksaccous or what would be the optimal way of task creation in this case
# Mar 26th 2019, 13:25 ricksaccous @dereuromark i was reading into your queue plugin recently and had a question, let's say i wanted to send an email at a time to about 400 recipients, and after every email i'd mark a flag in the db as email sent and move on to the next email, would that just be a case of recursively creating workers until the task is completed?
# Mar 26th 2019, 12:15 neothermic of all the things we've modded, that's not one of them
# Mar 26th 2019, 12:15 neothermic heh
# Mar 26th 2019, 12:15 neon1024 ..have you modified the session creation? :slightly_smiling_face:
# Mar 26th 2019, 12:14 neon1024 Like you think it’s using Memcached, and it’s falling back to File or something
# Mar 26th 2019, 12:13 neon1024 Can you see the key in Memcached?
# Mar 26th 2019, 12:13 neon1024 Your user object that is, perhaps it’s the same in Cake 2
# Mar 26th 2019, 12:13 neon1024 In Cake 3 anything your login method returns is set to the session
# Mar 26th 2019, 12:13 neothermic @neon1024 Narp. Tis not a login method either
# Mar 26th 2019, 12:12 neon1024 @neothermic Do you have debug on? Is your login method collecting too much data, and thus setting a huge object to the session on login?
# Mar 26th 2019, 11:59 egalles thx
# Mar 26th 2019, 11:59 egalles but maybe you re right when data is variable to use always from single source
# Mar 26th 2019, 11:58 egalles because I use auth component to get data from other views
# Mar 26th 2019, 11:56 neothermic Hmm. I ponder why _startSession() is taking 3s+ when I'm using memcache for sessions ¬_¬
# Mar 26th 2019, 11:53 dereuromark why not reading always from single source of truth (DB) then for this? sounds simpler and easier.
# Mar 26th 2019, 11:51 egalles in appcontroller?
# Mar 26th 2019, 11:51 egalles function beforeFilter(){ $user = $this->User->field('name', array('User.id' => $this->Session->read('Auth.User.id'))); $this->Session->write('Auth.User', $user); }
# Mar 26th 2019, 11:51 egalles maybe this way?
# Mar 26th 2019, 11:49 egalles for example, user 1 has 10 tickets if i waste 1 then i want in all site that shows 9 but when i Change of view session does not change and stills show me 10 instead of 9 that is what i have in database, but value is still in session
# Mar 26th 2019, 11:48 egalles Hi there, I'm having a little problem maybe someone can help me about that, I think that it's a noob problem but I want to resolve it asap. I want to write the component Auth so when I have some data there I can manipulate it. Do you know if I do a Session.write of the object session auth if I can do that?
# Mar 26th 2019, 11:26 dereuromark based on that group/role flag you can also load additional join tables and stuff with custom data per role, whatever. but never have more than one primary users table.