yii2-debug
yii2-debug copied to clipboard
Debug Panel should have information about cache
This issue has originally been reported by @dilip-vishwa at https://github.com/yiisoft/yii2/issues/2365. Moved here by @cebe.
If the cache is used in page, then we should get some informative information about the cache component used in particular view, query, fragment, or page, etc. It should also show the content of the particular cache.
I recall to have seen cache information in the Debug toolbar years ago. Perhabs its was yii1. It is useful to see when fragment caches hit. Therefore I would like to continue this discussion.
We have 2 options:
- A) Yii::info() hardcoded in the framework (like with queries)
- B) Events (see comment of @kidol https://github.com/yiisoft/yii2/issues/2365#issuecomment-110523270)
Which one should we implement?