mocapapa
(Mocapapa)
1
I have used beginCache() method according to the tutorial http://www.yiiframew…g-1.0.3-dev.pdf as shown below.
<?php if($this->beginCache('tagCloud', array('duration'=>3600))) { ?>
<?php $this->widget('TagCloud'); ?>
<?php $this->endCache(); } ?>
Though I have enabled the debug trace, the numbers of the debug statement, actually that of the SQL statement is the same as 14.
Is cache working?, or have I missed something?
qiang
(Qiang Xue)
2
Did you enable 'cache' app component?
mocapapa
(Mocapapa)
3
Thanks. I have not enabled cache app component nor installed memcached. After enabling these, I was able to make use of cache. 
BTW, I have found typos as follows on the page http://www.yiiframew…aching.overview.
array('host'=>'server1', 'port'=>11211, 'weigth'=>60),
array('host'=>'server2', 'port'=>11211, 'weigth'=>40),
should be
array('host'=>'server1', 'port'=>11211, 'weight'=>60),
array('host'=>'server2', 'port'=>11211, 'weight'=>40),
You may find other place by searching 'weigth' in the search window of 'search entire site' on the Yii home page.
mocapapa
(Mocapapa)
5
Hi Qiang,
I made a post to the cookbook on this know how.
http://www.yiiframew…oc/cookbook/17/
Ismael
(Shalanga)
6
I think following this step is not enought to accomplish the cache feature: http://www.yiiframework.com/doc/guide/caching.page
How do I enable the cache anyway?
Ismael
(Shalanga)
7
I discovered for myself.
In config i must choose one type of cache backend:
‘cache’=>array(
'class'=>'system.caching.CFileCache',
),
solved my own problem, no way to delete post…