Fix #158: Clean cache when updating configuration or installing/uninstalling a template