Log message #4180834

# At Username Text
# 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.
# Mar 26th 2019, 11:25 dereuromark jep, always.
# Mar 26th 2019, 11:25 lubos so you would go with `users` table and admin flag or some group, right? :slightly_smiling_face: that makes sense :slightly_smiling_face:
# Mar 26th 2019, 11:24 dereuromark this is usually an anti-pattern for all apps and frameworks :slightly_smiling_face:
# Mar 26th 2019, 11:24 lubos and is it possible to use 2 tables for users with same tinyauth config? i mean e.g. `users` and `members` if you see what I mean?
# Mar 26th 2019, 11:24 ondrej.nedvidek oh I see .. thanks for hint ;)
# Mar 26th 2019, 11:21 dereuromark but they would still be merged together, as they contain different data, that is not an issue for you.
# Mar 26th 2019, 11:20 dereuromark it would still be the same file, just two sections (top vs bottom), usually. you can use multiple files if you want to, as per docs.
# Mar 26th 2019, 11:16 ondrej.nedvidek @dereuromark Hi Mark, I would like to use TinyAuth for frontend and admin. So there will be admin acl.ini and frontend acl.ini. How would you set the config for this? I mean, bootstrap does not seem to be option as I need to load one or other, depends what controllers are called.
# Mar 26th 2019, 10:47 challgren You cant use both https://book.cakephp.org/3.0/en/controllers/middleware.html#cross-site-request-forgery-csrf-middleware
# Mar 26th 2019, 10:40 challgren Pick either Application.php middleware stack or Routing scope.
# Mar 26th 2019, 10:40 challgren There’s where your Csrf Middleware is being added, set your config there too
# Mar 26th 2019, 10:39 scuadra this is at the top of Router::scope