cakephp/cakephp — pull request #683 by jbutkus (2012-06-05 14:36:11+00:00)
Title: 2.2 cache logging

Hello.

This is a modified attempt, based on previous pull request:
https://github.com/cakephp/cakephp/pull/675

There may be two branches, although it is more of a proposal, than actual pull request.

I have merged previously proposed cache queries logging.
Might be useful, to the extent of my experience, while discussing actual timings with sysops, or checking amount of queries done (to optimize several hundreds (sigh!) away).

Also I have created example logger, which allows values counting.
It shall be clearly visible, how it would kill any server instantly.
Although it is more of an example - how I see a possibility for cache hit/miss ratio calculation (despite the fact, that I prefer something on the lines of this: http://dealnews.com/developers/cacti/memcached.html). It may be implemented using write-once per session mechanism.

Hope for your suggestions/insights, about how this could find it's way.

--
Best regards,
Justas B.