$this->beginCache($id, array('duration' => CCache::DISABLE));
is better than:
$this->beginCache($id, array('duration' => 0));
Few of the constants that i could think are:
- DISABLE (same as 0)
- PURGE_DISABLE (same as -1)
- FOREVER (same as specifying a month or 2, this could actually depending on cache component like for APC it could be 7 days, for file it could be a month)
Credit: cpamplona on #yii
Original Post: http://www.yiiframew...ever-made-easy/

Help
This topic is locked












