Hook up event functions to wipe caches on logout