#761 Extended cache handling mechanism to take in additional Thymeleaf arguments.
Fixes #779