Wednesday, October 28, 2015

Re: 404 requests filling view cache

Yes, in 2.4+ there is a skipLog param:
http://book.cakephp.org/2.0/en/appendices/2-4-migration-guide.html#errorhandler

But I just log them to a different log file via custom handler:
See https://github.com/dereuromark/cakephp-tools/wiki/Included-fixes-and-migration-tweaks#bugfixes--useful-adjustments
and https://github.com/dereuromark/cakephp-tools/blob/master/src/Error/ErrorHandler.php .

Mark



Am Mittwoch, 28. Oktober 2015 01:34:43 UTC+1 schrieb cricket:
Cake 2.2.4 (Yeah, i know -- need to upgrade this site!)

I just noticed that the view cache dir has a bunch of files along the lines of:

s_2fabc_2fabc_2fabc_2f_24_7b_40print_28md5_28base64_decode_28mzywd2vic2nhbg_29_29_29_7d_2f.php

Looks like the work of script kiddies. However, I'm also seeing things like this:

articles_deep_denial_or_disinformation.php
articles_dee.php

The first is the correct name/path and the second one is incomplete. There are several examples of this. I dunno if it's a Cake issue or not but the latter really shouldn't be cached as it's a 404.

Is there some way to tell Cake *not* to cache these?

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: