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?
Thanks.