# |
Apr 5th 2019, 10:18 |
asdfgh |
is there any sense of doing: |
# |
Apr 5th 2019, 10:16 |
asdfgh |
then should i add that response to the reponse of the controller? |
# |
Apr 5th 2019, 10:15 |
asdfgh |
guys $response = $this->response->withCookie($cookie); |
# |
Apr 5th 2019, 10:08 |
neothermic |
https://book.cakephp.org/2.0/en/core-libraries/caching.html#using-groups however, I suspect this might not affect us as we don't seem to use groups :slightly_smiling_face: |
# |
Apr 5th 2019, 10:08 |
neon1024 |
Perhaps someone forgot to update the documentation? Tracking down the commit would shed some light no doubt |
# |
Apr 5th 2019, 10:08 |
neothermic |
its not even shown in the example configs |
# |
Apr 5th 2019, 10:08 |
neothermic |
it isn't, at all. |
# |
Apr 5th 2019, 10:08 |
neon1024 |
So it wouldn’t appear there |
# |
Apr 5th 2019, 10:07 |
neon1024 |
I always understood it to be in your cache configuration |
# |
Apr 5th 2019, 10:07 |
neothermic |
https://github.com/cakephp/cakephp/blob/2.x/lib/Cake/Console/Templates/skel/Config/core.php is void of the word `group` |
# |
Apr 5th 2019, 10:06 |
neothermic |
@neon1024 that's the fun part, the core.php doesn't even mention the groups option |
# |
Apr 5th 2019, 10:04 |
neon1024 |
Or even just reading the source code |
# |
Apr 5th 2019, 10:04 |
neon1024 |
Writing a key to Memcached isn’t hard, nor is reading they key |
# |
Apr 5th 2019, 10:04 |
neon1024 |
Nor are they more impressive as such |
# |
Apr 5th 2019, 10:04 |
neon1024 |
Things don’t have to be hard |
# |
Apr 5th 2019, 10:03 |
neon1024 |
Then make the problem smaller |
# |
Apr 5th 2019, 10:03 |
neothermic |
it's a bit difficult to replicate ~1GB of live cache :P |
# |
Apr 5th 2019, 10:03 |
neon1024 |
Sounds like you have a requirement for a more fluid and customisable development environment |
# |
Apr 5th 2019, 10:02 |
neothermic |
and on our staging servers the cache lifetime isn't long enough to get a concrete answer :P |
# |
Apr 5th 2019, 10:02 |
neothermic |
@neon1024 it'd be irresponsible to TIAS on our production servers :P |
# |
Apr 5th 2019, 10:01 |
slackebot2 |
!tias |
# |
Apr 5th 2019, 10:01 |
slackebot2 |
Command sent from Slack by neon1024: |
# |
Apr 5th 2019, 10:01 |
neon1024 |
So, no? |
# |
Apr 5th 2019, 10:01 |
neon1024 |
> Cache keys used for groups are now hashed |
# |
Apr 5th 2019, 09:54 |
neothermic |
Hmm, question WRT going through 2.10.7: ```Cache keys used for groups are now hashed. This prevents keys overflowing Redis and Memcache key lengths. This will cause previously cached entries to be invalid as group keys have changed.``` If we don't use groups, will this still affect our keys? |
# |
Apr 5th 2019, 09:53 |
asdfgh |
why? |
# |
Apr 5th 2019, 09:53 |
asdfgh |
guys can somebody tell me why i cannot use the security component with CsrfProtectionMiddleware middlware? |
# |
Apr 5th 2019, 09:50 |
dereuromark |
darn, I wanted to add a behavior to a contact form, but using Forms there (model less), attaching sth like behaviors is not possible. How do you add your custom "plugin logic" there in these cases? |
# |
Apr 5th 2019, 09:49 |
asdfgh |
i am using the middleware |
# |
Apr 5th 2019, 09:49 |
asdfgh |
i also have comment $this->loadComponent('Security'); |
# |
Apr 5th 2019, 09:43 |
asdfgh |
any angel here? |
# |
Apr 5th 2019, 09:37 |
asdfgh |
excuse me: but, how is it possible that this code create CRSF Token mistmatch ???! (i am using cakephp 3.7) i do not have any other fields...nothing!! https://nopaste.chaoz-irc.net/view/0f65824b#VtWAbBzejxY5FTyJHVzUAXWllYGOecr5 |
# |
Apr 5th 2019, 08:51 |
dereuromark |
A real generic class could look like this then: https://github.com/spryker/util-text/blob/master/src/Spryker/Service/UtilText/Model/Url/Url.php But for performance it must not invoke cake routing for the input all the time, thus the clean separation. |
# |
Apr 5th 2019, 08:43 |
dereuromark |
you could build a Url class, that does this for you, as generic php solution. That would be fine then. |
# |
Apr 5th 2019, 08:42 |
k4t |
u r right |
# |
Apr 5th 2019, 08:42 |
k4t |
understand |
# |
Apr 5th 2019, 08:42 |
dereuromark |
cake routing is for cake urls only. |
# |
Apr 5th 2019, 08:41 |
dereuromark |
and super slow |
# |
Apr 5th 2019, 08:41 |
dereuromark |
no its not, its super ugly |
# |
Apr 5th 2019, 08:41 |
k4t |
ok, understand, point is that it is more... beuty ^^ |
# |
Apr 5th 2019, 08:41 |
dereuromark |
there is no need to invoke cake routing here |