# |
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 |
# |
Jul 16th 2017, 13:46 |
rudy1976s |
Hello I need some help for saving several record coming from a table in a single page |
# |
Jul 16th 2017, 13:33 |
admad |
merging 1 global config with per action config and merging all is not the same. Also in case of tables list it makes sense as the sidebar menu is global. |
# |
Jul 16th 2017, 13:32 |
hmic |
i'm just buying in on some bitcoins, that looks quite as dramatic at the moment too :D |
# |
Jul 16th 2017, 13:27 |
admad |
hold on dramatic finish to F1 race |
# |
Jul 16th 2017, 13:24 |
hmic |
if going through the effort to merge that global config into the action config for the tables blacklist, why not make it universally possible |
# |
Jul 16th 2017, 13:24 |
hmic |
but you get the idea? |
# |
Jul 16th 2017, 13:22 |
admad |
global table blacklist sounds good, not too sure about global per action config |