yii 1 clear Cache

Yii::app()->cache->flush();
Index out of bounds