invalidates caches after logout