yii2-debug icon indicating copy to clipboard operation
yii2-debug copied to clipboard

Debug Panel should have information about cache

Open yii-bot opened this issue 9 years ago • 1 comments

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.

yii-bot avatar Jan 24 '16 15:01 yii-bot

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?

dynasource avatar Oct 22 '16 14:10 dynasource