diff --git a/framework/filters/PageCache.php b/framework/filters/PageCache.php index cac3bb4d5b..516c33bbda 100644 --- a/framework/filters/PageCache.php +++ b/framework/filters/PageCache.php @@ -164,6 +164,7 @@ class PageCache extends ActionFilter ob_implicit_flush(false); if ($this->view->beginCache($id, $properties)) { $response->on(Response::EVENT_AFTER_SEND, [$this, 'cacheResponse']); + Yii::trace('Valid page content is not found in the cache.', __METHOD__); return true; } else { $data = $this->cache->get($this->calculateCacheKey()); @@ -171,6 +172,7 @@ class PageCache extends ActionFilter $this->restoreResponse($response, $data); } $response->content = ob_get_clean(); + Yii::trace('Valid page content is found in the cache.', __METHOD__); return false; } }