use head-option to avoid NPE on author name
cacheTTL for the templates and reorganize code