Hi, I have a page with some news. The output is cached using fragment caching, but still the news in the controller are retrieved from cache/database. Is there any possiblity to check if my output cache is present so I could omit news fetching and just display the cached output?
I think there should be a method in CCache class to check the existence of cache:
if (! Yii::app()->cache->isset('cache_id')) {
// just display cached output
}