Log message #4033287

# At Username Text
# May 28th 2017, 19:47 chris-andre db query on every request sounds like "overkill". Thanks @dereuromark , Ill look into db sessions
# May 28th 2017, 19:45 dereuromark with DB sessions you do that anyway :slightly_smiling_face:
# May 28th 2017, 19:44 chris-andre Okay. But that means I will have to query the db to check if any changes has been made for the user, right?
# May 28th 2017, 19:40 dereuromark thats why you need db sessions and a privot table of some sorts to manage those relations from user to session
# May 28th 2017, 19:36 chris-andre Yes, so actually, I should update user data the same way when the user updates data himself (to update on other devices as well).
# May 28th 2017, 19:32 dereuromark there are different strategies, e.g. putting in a flag to force updating, once the user refreshes the page
# May 28th 2017, 19:31 dereuromark you have to have a session_id in your user_... online table, this way you know which user this would be. but this is 1:n as you can be logged in with multiple devices
# May 28th 2017, 19:30 chris-andre Yes, admad pointed me against updating cache session, but I don't get it. How shall I do the check and if it's different, how should I update it? Is the cache gonna be updated when admin performs an user data update?
# May 28th 2017, 19:24 dereuromark wasnt this already answered above?
# May 28th 2017, 19:19 chris-andre Anyone here familiar with cache session? If an admin changes user data of an logged in user, how can I update cache/session so that the logged in user get his session updated as well?
# May 28th 2017, 19:14 chris-andre Reason I was asking about path and composer was that I suspected you had placed the view file in the vendor folder, then run composer install. But as that is not the case, I don't know why the issue you describes exists.
# May 28th 2017, 19:11 igreat Is there a chance it could link with composer issue?
# May 28th 2017, 19:10 chris-andre Allright. Then I have no idea.
# May 28th 2017, 19:09 igreat As it's not supported
# May 28th 2017, 19:09 igreat Yea, did not use composer to install
# May 28th 2017, 19:08 chris-andre I see. You have uploaded your local app to your prod. server with ftp?
# May 28th 2017, 19:04 igreat I don't understand why
# May 28th 2017, 19:03 igreat But just uploaded it to my online host and its misbehaving
# May 28th 2017, 19:03 igreat I run wamp as my local server, and it works well on it
# May 28th 2017, 19:00 chris-andre Seems like your prod serve repo is different from the local repo.
# May 28th 2017, 18:58 igreat The view templates are located in root/src/Template/Plugin/cakedc/users/Users
# May 28th 2017, 18:57 chris-andre Ah, sry. Misunderstood.
# May 28th 2017, 18:55 chris-andre Where is the template file you created stored? Which path?
# May 28th 2017, 18:54 igreat The layout is working fine, but the view templates are located in root/src/Template/Plugin/cakedc/users/login.ctp
# May 28th 2017, 18:50 chris-andre Is the template located in root:src/Template/Layout?
# May 28th 2017, 18:46 igreat Yea, via the debug kit
# May 28th 2017, 18:45 chris-andre @igreat have you tried to clear cache?
# May 28th 2017, 18:39 igreat Can anyone help me with a solution?
# May 28th 2017, 18:39 igreat >On my app, I used cakedc users plugin, and created new template file to override the plugin templates which are working fine on my local host (offline). >But after putting it online, it wont use the templates I created, instead it keeps using the template that came with the plugin
# May 28th 2017, 15:09 birdy247 but then gives a missing controller of the sectionname
# May 28th 2017, 15:08 birdy247 it builds the route just fine
# May 28th 2017, 15:08 birdy247 www.mydomain.com/:sectionname/:id-:slug
# May 28th 2017, 15:02 birdy247 i.e. "portfolio"
# May 28th 2017, 15:02 birdy247 where "blog" is dynamic
# May 28th 2017, 15:02 birdy247 would connect to Articles::view
# May 28th 2017, 15:01 birdy247 i.e. www.mydoamin.com/blog/id:-:slug
# May 28th 2017, 15:01 birdy247 Is there a way to create a route based on a variable
# May 28th 2017, 14:05 inoas okay
# May 28th 2017, 14:05 inoas I really hope that 4.x will have non static time objects/configuration/setup
# May 28th 2017, 14:05 jeremyharris I don't try to avoid them necessarily, just use them judiciously
# May 28th 2017, 14:05 inoas it pretty much feels like programming with globals