How check if cache is present

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

}



no1 replied so I had to manage myself

instead of fragment caching in view, I catched the output in the controller and cached it, then displayed it