Log message #4052543

# At Username Text
# Jul 17th 2017, 01:45 braeden That's confusing
# Jul 17th 2017, 01:40 dblowfish I have an Article that hasMany Comments. When I edit the Article, I remove one of the Comments. When I save,what is the best way to have Cake delete the comment that is not in the request? ( the one the user deleted on the client )
# Jul 16th 2017, 23:30 braeden Why not just execute the SQL directly?
# Jul 16th 2017, 20:59 savant https://book.cakephp.org/3.0/en/orm/query-builder.html#subqueries
# Jul 16th 2017, 20:58 nicolas.r okeyt :slightly_smiling_face:
# Jul 16th 2017, 20:58 savant if someone cant, they wont
# Jul 16th 2017, 20:58 nicolas.r thx
# Jul 16th 2017, 20:58 nicolas.r SELECT * FROM demandes WHERE created IN (SELECT max(created) FROM demandes group by original_demande)
# Jul 16th 2017, 20:58 savant if someone can help, they will
# Jul 16th 2017, 20:58 savant nicolas.r: just post the query
# Jul 16th 2017, 20:57 nicolas.r Hello everybody, hope you're fine :slightly_smiling_face: Anyone can help me to translate a sql query to cakephph query ? :slightly_smiling_face:
# Jul 16th 2017, 17:05 cleptric The environment also sets debug true/false
# Jul 16th 2017, 17:05 admad and yeah i actually use Asset.timestamp = 'force' not true :slightly_smiling_face:
# Jul 16th 2017, 17:05 cleptric @joris_ I’m hadnling it like this in my apps: `bootstrap.php` ``` Configure::write('AssetCompress.rawMode', false); if (ENVIRONMENT === Environment::DEVELOPMENT) { Configure::write('AssetCompress.rawMode', true); } ```
# Jul 16th 2017, 17:04 joris_ @admad that snippet is a good one!
# Jul 16th 2017, 17:03 joris_ i think its expected behavior, just didn't found anything of it in the docs.
# Jul 16th 2017, 16:57 admad also i use AssetCompress->css('styles', ['raw' => Configure::read('debug')])
# Jul 16th 2017, 16:56 admad i don't use assetcompress' timestamping feature but rather core one which appends timestamp as query string
# Jul 16th 2017, 16:55 joris_ so its working in production as expected, but i was testing it first and it was serving the new file through the standard URL
# Jul 16th 2017, 16:54 hmic if needed in production (with debug == false) set it to 'force' instead
# Jul 16th 2017, 16:54 joris_ @admad i've done that but when debug=true it serves style.min.css and when debug=false it serves style.min.vX.css
# Jul 16th 2017, 16:52 admad set Asset.timestamp to true
# Jul 16th 2017, 16:52 admad @joris_ asset timestamping is a core feature
# Jul 16th 2017, 16:42 dereuromark i see, in that case it shouldnt cache it
# Jul 16th 2017, 16:42 joris_ cause it's working in production
# Jul 16th 2017, 16:41 joris_ looks like the url remains without timestamp when debug is on
# Jul 16th 2017, 16:38 dereuromark if it stays the same, nothing changed and no invalidating is necassary
# Jul 16th 2017, 16:35 joris_ AssetCompress has an option timestamp to burst browser cache, but how does it burst the cache if the URL stays the same?
# Jul 16th 2017, 14:47 dereuromark or is it tryer? :slightly_smiling_face: well anyway
# Jul 16th 2017, 14:46 dereuromark try it :slightly_smiling_face: and you will be a trier too
# Jul 16th 2017, 14:43 maymeow dont using it :slightly_smiling_face:
# Jul 16th 2017, 14:38 dereuromark via cakebox
# Jul 16th 2017, 14:38 dereuromark everyone does :slightly_smiling_face: when using nginx
# Jul 16th 2017, 14:36 maymeow anyone has tried CakePHP with NGINX without Apache?
# Jul 16th 2017, 14:08 admad hmic: https://github.com/FriendsOfCake/crud-view/pull/199
# Jul 16th 2017, 14:00 hmic even better then :D
# Jul 16th 2017, 14:00 admad thanks, i almost have that ready for PR
# Jul 16th 2017, 14:00 hmic should i prepare a PR for the global blacklist_tables thing?
# Jul 16th 2017, 13:59 hmic jep
# Jul 16th 2017, 13:59 admad shouldn't be too difficult :slightly_smiling_face:
# Jul 16th 2017, 13:57 hmic i need to think on how to implement the per action config merging for my own apps then :p