Event for adjusting template cache settings