use eventlistener to modify cache options