setCustomTemplate not effective until Cache Clear

Permalink
Here goes my first post. . We're a Drupal and Magento Development house but I've recently stumbled across C5 and it doesn't look like I'm ever going to look back !! It's so powerful.

Anyway I've nearly got my template sorted. I've created an Image Block template and I am trying to apply it to an Area with the following code :
$images = new Area('Portfolio Item Images'); 
$images->setCustomTemplate('image','templates/unordered_list.php');
$images->display($c); ?>


I've been tearing my hair out because it hasn't been applying that template to the image blocks in that area. Then I thought I'd clear the cache (even though caching is currently totally disabled). It then worked perfectly !

If I now go and add a new image to the block, it doesn't apply the CustomTemplate until I then clear the cache. This isn't good for our customers, as they're often confused by caching.

Am I doing something wrong ? Is this expected behaviour ? Or is it a core bug ?

Appreciate any help or pointers. . .

Cheers,
Mike

biomaj
 
biomaj replied on at Permalink Reply
biomaj
Can anyone help ?

Cheers,
Mike