restore url param template to tpl
cache depends on mediafiles Fixes #28