So I assume there's a bug in my template:
but even if I comment out the whole line, it's like the template engine stopped taking the modified template, and just "froze " in one previous state.
So my question is: how one can force the template system to take the modifications again?
Is there a template cache somewhere?
Thank you for your help.
I am not really sure what you mean by "froze". I suspect you mean that the page stops displaying. If so there is almost always a PHP error responsible. In the case of your call to printRandomImages() you certainly have the parameter wrong for indicating the album.
The function document describes the $rootAlbum parameter as "string $rootAlbum optional album from which to get the images" but you are passing an integer to it. This does explain the invalid folder name of "1".
But with that line commented, there must be another PHP error. For that you will need to find your server Apache/PHP error log.