Caching widget content...

Here's my code:

<?php if($this->beginCache('cache_userList',array('duration'=>3600))) { ?>

<?php $this->widget('application.components.UserList', array('roleid'=>User::ROLE_MEMBER)); ?>

<?php $this->endCache(); } ?>

Is this correct - I'm expecting to see a drop in page load time but it's exactly the same with or without the caching lines. Is there something I'm missing?


Did you enable the cache mechanism in the config file? And also, please check if the memcached is up and running.

Thanks I new there was an easy answer :)