added clearCache call to ApplicationEventListener