Hi! I would like to share with you a cacheable widget I use in my projects.
It caches the entire run()
method and is very similar to the yii\filters\PageCache
.
It allows you to cache all heavy DB queries, heavy calculations and heavy template rendering in one cache item.
It’s also quite flexible and allows you to generate cache key manually or specify cache key variations.