Canceling Second Cdbcache Query

In blow code queryCount is set 2. if data provider is empty second query that will run on cache remain for next query. but in next query we don’t need query cache. how can cancel second queued cache query if data provider was empty?


 

   	$dataProvider = new CActiveDataProvider(Advert::model()->cache(3600*24*30,$dependency,2),array(

			'criteria'=>$criteria,

			//'pagination'=>false,

			'pagination'=>array(

				'pageSize'=>10,

			),

		));