change the way events get cached